Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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?
[Corion]: Hi Discipulus!

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-10-18 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (243 votes). Check out past polls.

    Notices?