in reply to Re^2: grep for numbers
in thread grep for numbers

leonidlm:

Because it's undefined behavior. It would be better to use:

my $num; $num = $1 if ($str =~ /ci=(\d+)&/);
...roboticus