Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Save Split to Array

by CountZero (Bishop)
on Aug 27, 2009 at 21:13 UTC ( [id://791748]=note: print w/replies, xml ) Need Help??


in reply to Save Split to Array

If you want to check if a string contains a space, just use this simple regex:
$string =~ m/ /;
or
$string =~ m/\s/;
if you want to check for all "space"-like characters (such as tabs, CR, ...)

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

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

    No recent polls found