Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 meditating upon the Monastery: (14)
As of 2014-12-22 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (126 votes), past polls