Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: strip multiple spaces

by chromatic (Archbishop)
on Aug 01, 2000 at 04:45 UTC ( #25377=note: print w/replies, xml ) Need Help??


in reply to strip multiple spaces

split takes pretty robust regular expressions. Use the + quantifier to mean "at least one space": split(/\s+/,$line);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2021-02-24 17:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?