in reply to Re^2: Class::Std problem
in thread Class::Std problem
Sorry, but something you said isn't true.
>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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Class::Std problem
by Herkum (Parson) on Jan 19, 2009 at 14:26 UTC | |
by ikegami (Patriarch) on Jan 20, 2009 at 04:27 UTC |