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();