in reply to Length of first captured match
While I think this is what you're looking for, I'm just guessing at what the right answer is if there is no match.my $length = $x =~ /(\d+)$/ ? length $1 : 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Length of first captured match
by QM (Parson) on May 07, 2006 at 01:21 UTC |