Skip to content

Instantly share code, notes, and snippets.

@paveljurca
Last active December 14, 2015 17:52
Show Gist options
  • Save paveljurca/6809020f0dc179b1fd92 to your computer and use it in GitHub Desktop.
Save paveljurca/6809020f0dc179b1fd92 to your computer and use it in GitHub Desktop.
reading by diamond, which file you're in then?
use v5.10;
# diamond and @ARGV
# to be continued...
@ARGV = <*.js>;
say $ARGV[0];
while (<>) {
say $ARGV[0] if eof;
# say $. if eof;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment