Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Flat Database: Skip the first line

by Ineffectual (Scribe)
on Jan 26, 2002 at 01:14 UTC ( [id://141650]=note: print w/replies, xml ) Need Help??


in reply to Flat Database: Skip the first line

You can also do it during the while loop. This is also handy if you need to remove the \n character.
while (<ORGDB>) { chomp; next if /^company/; }
Change the ^company to whatever you can get away with. ie: if company appears at the front of the line (the word company) then you can change it to be "company name" or whatever is unique in the top line of your file.

'Fect

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://141650]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-25 19:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found