in reply to use strict;$a=2
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
|
|---|