use strict; my @list; @list = sort {$a <=> $b} @list;
Offhand I wouldn't know a way to catch the use of undeclared lexical $a and $b, except maybe tieing global $a and $b to something that would bomb if a STORE or FETCH would be done. But that only can work if you don't use sort(), I would think.
Liz
In reply to Re: use strict;$a=2
by liz
in thread use strict;$a=2
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |