Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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 avoiding work at the Monastery: (8)
As of 2015-07-31 02:29 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 (274 votes), past polls