Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: uninitialized value $_

by shadowsong (Pilgrim)
on Mar 31, 2016 at 15:50 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1159210]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-29 05:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found