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

Re: contextual substitution with s///?

by BrowserUk (Pope)
on Feb 01, 2013 at 16:27 UTC ( #1016578=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $s = 'The_quick__brown____fox';;
    
    ...
    
    
    fox
    
  2. or download this
    print for split /_+/, $s;;
    The
    quick
    brown
    fox
    
  3. or download this
    print for split / /, '    the quick  brown   fox     ';;
    
    ...
    quick
    brown
    fox
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-04-19 10:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls