Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Record Separator affecting Regex

by tadman (Prior)
on Nov 07, 2002 at 19:56 UTC ( #211207=note: print w/replies, xml ) Need Help??


in reply to Re: Record Separator affecting Regex
in thread Record Separator affecting Regex

As a note, there's a way to check for "lines which are composed only of spaces" that I find much more succinct:
print "Query: $line" if ($line =~ /\S/);
Or more generically:
next unless ($line =~ /\S/); print "Query: $line";
"Not composed entirely of spaces" is equivalent to "contains a non-space character", at least in this context.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://211207]
help
Chatterbox?
[Corion]: Hmm - my Italian isn't that great - I assume this is more an accident and less an art project, right?
[Discipulus]: yes we are falling down
[Corion]: Discipulus: As is great tradition, just build another level on it ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-02-28 10:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (399 votes). Check out past polls.