in reply to Re: perl one liner to print a line (GOLF!)
in thread perl one liner to print a line

die"$_\n" sends to STDERR, so you need to add " 2>&1".

The second doesn't do the same thing as the other golfs so far. It reads the entire file whereas the other golfs spent extra character to stop after 4 lines. If reading the entire file is ok, then I put forth

perl -lnE"$.^4||say" 123456789012345 15