This doesn't leave @curr sorted; sort just returns the sorted list. You want:sort(@curr);
and presumably you want it after the for loop, not inside the loop.@curr = sort(@curr);
In reply to Re: reg expression
by ysth
in thread reg expression
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |