update or what Tanktalus said... I'm beginning to see the attraction of having First Post! ;)my $x = 'abc12345'; my $length = $x =~ /(\d+)$/ && length($1); print "the number in $x is $length long"; __END__ the number in abc12345 is 5 long
In reply to Re: Length of first captured match
by rhesa
in thread Length of first captured match
by QM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |