in reply to Accessing hash data via a reference

See perlreftut. The correct way is $hashref->{$key}.

If that still comes out empty, maybe the hash ref doesn't contain the keys that you think it contains? Data::Dumper can answer that question for you, and many other questions related to your data structures.

Replies are listed 'Best First'.
Re^2: Accessing hash data via a reference
by nleach (Novice) on Mar 21, 2011 at 16:19 UTC

    very many thanks moritz, my syntax was all wrong, this works great

    print "Weight $broker->{'engineWeight'}\n";