Re: better way to skip first few lines of file read?
- From: alancam73@xxxxxxxxx (Alan Campbell)
- Date: Thu, 28 Dec 2006 05:37:18 -0800 (PST)
<TRACECSV> while $. <= 4;
$. is not well-known to many Perl programmers.
<TRACECSV> for 1 .. 4;
thanks. Above solution is simple & effective. I agree that I was gratuitously using $. when your solution is far easier to document and probably safer in my program since I have several filehandles open.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
- Follow-Ups:
- Re: better way to skip first few lines of file read?
- From: Dr.Ruud
- Re: better way to skip first few lines of file read?
- Prev by Date: Re: Strange problem with glob <>
- Next by Date: Re: HoA building
- Previous by thread: Re: better way to skip first few lines of file read?
- Next by thread: Re: better way to skip first few lines of file read?
- Index(es):