in reply to Working with WWW::Mechanize

Everytime a simple print $var; shows strange stuff with HASH(...) or ARRAY(...) try using Data::Dumper (its a core module, included in every standard perl installation):
use Data::Dumper; print Dumper($var);