Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Perl: How to match a line and print words at line immediately above it?

by sundialsvc4 (Abbot)
on Nov 01, 2013 at 14:59 UTC ( #1060773=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl: How to match a line and print words at line immediately above it?
in thread Perl: How to match a line and print words at line immediately above it?

... or perhaps my $previous = undef; to clearly reflect that there is no previous-line, much as NULL (in a database column) denotes the complete absence of any value at all.   Whatever makes the most sense in your particular situation.


Comment on Re^2: Perl: How to match a line and print words at line immediately above it?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-01-27 23:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (211 votes), past polls