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

Writing answers for newbie questions

by cLive ;-) (Prior)
on Jun 27, 2001 at 00:44 UTC ( #91748=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $string =~ s/\s+/ /g;
    
  2. or download this
    # replace all multiple whitespace characters from $string
    # \s represents a whitespace character (space, tab, newline etc)
    # + means 'one or more'
    $string =~ s/\s+/ /g;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2020-02-28 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (125 votes). Check out past polls.

    Notices?