in reply to Read n lines from the top of a text file
The cleverest answer was by Piers Cawley:
#!/usr/bin/perl -p 11..& [download]
Hmm that is really obscure.
C:\>perl -pe "11..&" test.pl 1 2 3 4 5 6 7 8 9 10 Undefined subroutine &main::; called, <> line 11. C:\> [download]
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print