Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How do I test for a blank line when reading from a file?

by merlyn (Sage)
on Oct 11, 2000 at 20:54 UTC ( [id://36248]=note: print w/replies, xml ) Need Help??


in reply to How do I test for a blank line when reading from a file?

print "it's blank" unless /\S/;
(This assumes that a line consisting of only whitespace characters is considered blank.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-24 00:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found