my $str = '000001'; my $index = length(($str =~ /^(0*)/)[0]); [download]
In reply to Re: index using a range by choroba in thread index using a range by romano