Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: regex on previous lines (or previous lines, or FIFO array)

by Anonymous Monk
on Feb 01, 2013 at 10:05 UTC ( #1016496=note: print w/ replies, xml ) Need Help??


in reply to regex on previous lines

previous lines -> Re: print line 5 lines previous to comaprison line!

my @lines ; push @lines, scalar readline $handle for 1 .. 5; while( readline $handle ){ ... shift @lines; push @lines, $_; }


Comment on Re: regex on previous lines (or previous lines, or FIFO array)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-07-02 00:39 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 (25 votes), past polls