perl -e'@x=<>; print $x[3]'
but that loads the entire file into memory where the $. method doesn't. Just putting it out there since you tried to use an array.
In reply to Re: perl one liner to print a line
by ikegami
in thread perl one liner to print a line
by sugar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |