Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^5: Undef values from file open

by poj (Abbot)
on Mar 22, 2016 at 21:24 UTC ( [id://1158553]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Undef values from file open
in thread Undef values from file open

Maybe you have trailing blank lines .

while (my $line = <$lines>) { next unless $line =~ /\S/; # <- add chomp $line; . .

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1158553]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-20 04:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found