>perl -we"@hierarchy = qw(EEBL::League::Schedule); () = sort { $a->isa
+($b) ? -1 : $b->isa($a) ? +1 : 0 } @hierarchy;"
>perl -we"@hierarchy = qw(EEBL::Team EEBL EEBL::Config); () = sort { $
+a->isa($b) ? -1 : $b->isa($a) ? +1 : 0 } @hierarchy;"
>
According to you, code that isn't even executed is issuing a run-time warning.
>perl -we"() = sort { die } 1"
>perl -we"() = sort { die } 1,2"
Died at -e line 1.
>
Find what and you found your problem. The most likely by far is that the content of @hierarchy isn't what you think it is.
I used Data::Dumper to print out @hierarchy.
Please provide the output. Remember to use Dumper(\@hierarchy) and not Dumper(@hierarchy). Flattening the array makes the output ambiguous.
|