Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: uninitialized value $_

by shadowsong (Monk)
on Mar 31, 2016 at 15:50 UTC ( #1159210=note: print w/replies, xml ) Need Help??


in reply to uninitialized value $_

In addition to what Corion has imparted; once you understand what was causing the error - here is a one-liner you may use that echoes input to filename.txt and stops when a blank line is entered:

perl -pe "last if /^\s*$/" > filename.txt

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1159210]
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: (7)
As of 2019-05-20 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (123 votes). Check out past polls.

    Notices?