Because it's undefined behavior. It would be better to use:
...roboticusmy $num; $num = $1 if ($str =~ /ci=(\d+)&/);
In reply to Re^3: grep for numbers
by roboticus
in thread grep for numbers
by sandy1028
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |