in reply to Help With Parsing XML format / Hash of Hashes
If what you did was as shown then you should have received a heads up along the lines of: Odd number of elements in hash assignment at .... You do use strictures (use strict; use warnings;) don't you?
What was returned would have been a hash reference which you need to assign to a scalar:
my $result = subReturningHashRef ();
which you then access fields of by:
print "Found $result->{MisspelledWordCount} miss-spelled words\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help With Parsing XML format / Hash of Hashes
by Anonymous Monk on Nov 24, 2007 at 00:26 UTC |