Don't use $1 without testing whether the match succeeded or not. If you expect the match to always succeed, at least add an "or die". Failure to do so will give you a "stale" $1 when you least expect it.m/^(\d+)\s+(.*)/; push @names, [$1, $2];
In reply to Re^2: How to sort?
by merlyn
in thread How to sort?
by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |