Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

•Re: Tutorial suggestion: split and join

by merlyn (Sage)
on Aug 29, 2003 at 14:05 UTC ( [id://287659]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @words = split /\s+/, $string;
    my @words = $string =~ /(\S+)/g;
    
  2. or download this
    my @bignums = $string =~ /(\d{4,})/;g
    
  3. or download this
    my @funny_delimited = split /(?:,\s+|###|!delim!)/, $string;
    

Log In?
Username:
Password:

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

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

    No recent polls found