in reply to why does array return the hash value?

I doubt that anyone here knows what XMLP::GetElementsByName() returns (XMLP doesn't seem to exist on CPAN). If you don't have your own docs to explain what it returns, you should use Data::Dumper to look at what's in @array:
use Data::Dumper 'Dumper'; ... @array = XMLP::GetElementsByName($node, $path) print Dumper( \@array );
Assuming that it's some sort of array (list) of objects, your use of "sort" is almost certainly not doing what you expect or want it to do. It's more likely you'll need to provide a sort block that compares elements of the structures returned by that module function.

Replies are listed 'Best First'.
Re^2: why does array return the hash value?
by noobnoob (Initiate) on Apr 11, 2010 at 15:50 UTC
    Thanks for the pointer! will try that on!