![]() |
|
P is for Practical | |
PerlMonks |
Re^3: Variable matching on a regexby eric256 (Parson) |
on Jun 17, 2010 at 15:00 UTC ( #845221=note: print w/replies, xml ) | Need Help?? |
Looks like minor typo at the start of the regex, but it works! $data =~ /(?:(\d+)\s*(?{push @results, $^N}))+$/;___________ Eric Hodges
In Section
Seekers of Perl Wisdom
|
|