Skip to content

Instantly share code, notes, and snippets.

@Tux
Created March 9, 2015 07:00
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 Tux/3efcf2bbcb859a27ef6a to your computer and use it in GitHub Desktop.
Save Tux/3efcf2bbcb859a27ef6a to your computer and use it in GitHub Desktop.
$ echo -n "A+B+C+D+" >xx.txt
$ cat xx.txt
A+B+C+D+$
$ perl6 -e '$*IN.input-line-separator="+";.say for lines():eager' xx.txt
A+B+C+D+
$ echo "A+B+C+" | perl6 -e 'use v6;$*IN.input-line-separator="+";.say for lines():eager'
A+
B+
C+
$ perl6 --version
This is perl6 version 2015.02-241-gcd7c31c built on MoarVM version 2015.02-25-g3d0404a
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment