in reply to Class::Std problem
That can't be. If @hierarchy only contained one element as you claim it does in the first data set, the compare block would never get called. @hierarchy actually contains more than one element, one of which is undefined.
To see the contents of @hierarchy, you can use
use Data::Dumper; print Dumper \@hierarchy;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class::Std problem
by Herkum (Parson) on Jan 19, 2009 at 05:36 UTC | |
by ikegami (Patriarch) on Jan 19, 2009 at 06:37 UTC | |
by Herkum (Parson) on Jan 19, 2009 at 14:26 UTC | |
by ikegami (Patriarch) on Jan 20, 2009 at 04:27 UTC |