A good application for the under-estimated comma operator:
$str = "000001"; $index = ( $str =~ /^(0*)/, length $1 ); print "$index\n";
In reply to Re: index using a range
by hdb
in thread index using a range
by romano
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |