Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: using regex to capture a string and an array

by wol (Hermit)
on Nov 02, 2009 at 16:26 UTC ( [id://804493]=note: print w/replies, xml ) Need Help??


in reply to Re: using regex to capture a string and an array
in thread using regex to capture a string and an array

Once you've got the digits as a string, you can turn that into an array thus:
my @RS = split "", $digits;
(This is included in the suggestion below from BioLion, but it's a bit buried in the code, so I thought I'd post it by itself. No votes required.)

--
use JAPH;
print JAPH::asString();

Log In?
Username:
Password:

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

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

    No recent polls found