Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created December 21, 2016 22:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoffixznet/d932dd009f4d79e6a8c1d6c829d0bdab to your computer and use it in GitHub Desktop.
Save zoffixznet/d932dd009f4d79e6a8c1d6c829d0bdab to your computer and use it in GitHub Desktop.
zoffix@VirtualBox:/tmp/tmp.zcZBflbJ5V$ perl -wlnE 'say "$. $_"' foo1 foo2
1 a
2 b
3 c
4 d
5 e
6 f
zoffix@VirtualBox:/tmp/tmp.zcZBflbJ5V$ perl6 -ne 'say "{++$} $_"' foo1 foo2
1 a
2 b
3 c
4 d
5 e
6 f
zoffix@VirtualBox:/tmp/tmp.zcZBflbJ5V$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment