I was having so much fun playing with one-liners that I forgot the parameters of the problem. I love that die trick.... I'll have to try it:
--roboticusperl -ne '@t=(@t[1..4],$_,"---\n");die@t if/foo/' file
In reply to Re^3: upto match please, my one-lina!!
by roboticus
in thread upto match please, my one-lina!!
by Firefly258
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |