in reply to Re^4: Array dereference in foreach()
in thread Array dereference in foreach()

Hi, on a side note, you don't need to pass to Data::Dumper a reference to the structure you are dumping, if that structure is already a reference.

my %hash = ( foo => 'bar' ); my $href = { baz => 'qux' }; print " hash: ", Dumper( \%hash ), "\n"; print "hashref: ", Dumper( $href ), "\n";

Hope this helps!


The way forward always starts with a minimal test.