in reply to Re^2: Variable matching on a regex
in thread Variable matching on a regex
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