Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: global regex returning a list of arrays?

by LanX (Saint)
on Feb 20, 2010 at 23:09 UTC ( [id://824441]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $a=join " ",0..7;
    sub fold (&) { my @a; push @a, [$1,$2] while $_[0]->(); @a};
    print Dumper fold { $a =~/(\w) (\w)/g };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-19 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found