> Hi:
>
> I have a file that contains a header row, I want to
> remove the first line and start processing on the second
> line.  Would you recommend using seek to scan for the
> last word in the first line?

Another solution is:

# Skip over line 1, adds overhead to all iterations though.
while (<FILEHANDLE>) {
  next if 1..1;    # Skip lines from 1 to 1
                   # ---OR---
  next if ($.==1); # Skip specifically line 1
}

or:

# Discard line 1
while (<>) { last unless $.<2 }

Jonathan Paton


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to