Looks like minor typo at the start of the regex, but it works!
$data =~ /(?:(\d+)\s*(?{push @results, $^N}))+$/;In reply to Re^3: Variable matching on a regex
by eric256
in thread Variable matching on a regex
by LaintalAy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |