local our $length; $x =~ /(\d+)(?{ $length = length($1) })$/;
or in Perl 5.8:
local our $length; $x =~ /(\d+)(?{ $length = length($^N) })$/;
In reply to Re: Length of first captured match
by ikegami
in thread Length of first captured match
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |