|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: ignore first 5 lines of a fileby stephen (Priest) |
| on Apr 12, 2002 at 22:19 UTC ( #158690=note: print w/ replies, xml ) | Need Help?? |
|
Just for sheer amusement value, here's another way of skipping the first five lines of a file:
Some explanation is in order. When the range operator .. appears in a scalar context, it becomes the flipflop operator, which behaves very differently and magically. If the argument on either side of it is a constant number, it does an implicit compare with $.. Another way of doing it would be:
stephen
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||