in reply to Re^2: XML::LibXML - WHAR HASH TREES WHAR?!
in thread XML::LibXML - WHAR HASH TREES WHAR?!

XML::Simple has been regarded as the easier of the two.

XML::Simple is the hardest XML parser to use.

$smart->{book}('@')
is
ref($simple->{book}) && ref($simple->{book}) eq 'ARRAY' ? $simple->{book} : [ $simple->{book} ]
or
ForceArray => [qw( book )] # In constructor $simple->{book}

XML::Smart appears to be an attempt to fix this problem of XML::Simple. (It still suffers from other problems of XML::Simple.)