in reply to Re^4: xml simple not a hash reference
in thread xml simple not a hash reference

It prints out: HASH(0x27acfbc)
This indicates that your $mealtype variable does not hold a scalar or array, but a reference to a hash.

The easiest way to print that is probably to use Data::Dumper:

use Data::Dumper; print Dumper($mealtype);

Replies are listed 'Best First'.
Re^6: xml simple not a hash reference
by Anonymous Monk on Dec 29, 2010 at 09:10 UTC
    To quote perldata
    Perl has three built-in data types: scalars, arrays of scalars, and associative arrays of scalars, known as "hashes". A scalar is a single string (of any size, limited only by the available memory), number, or a reference to something (which will be discussed in perlref).