Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: move down 2 lines in file?

by bibliophile (Parson)
on Jul 14, 2008 at 15:52 UTC ( #697507=note: print w/ replies, xml ) Need Help??


in reply to Re: move down 2 lines in file?
in thread move down 2 lines in file?

Also, if you don't know how many lines to skip but you *do* know what the first line-of-interest starts with, you can say something like (untested):

my $good_start = 0; while (<FILE>) { next unless (($good_start) || (/^start-of-data pattern/); $good_start = 1; # do things with the interesting lines }


Comment on Re^2: move down 2 lines in file?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2015-07-06 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls