in reply to Looping through hash of hashes

The general technique used is of the form for my $key (sort keys %hash) {...}. You need the sort if sorted order is important. In general you get the keys back in some arbitary order which is neither inserted or sorted order.

$key is used to access the file information: file_attachments{$key}. You then need to retreive the individual fields as: file_attachments{$key}{'price'} etc.


DWIM is Perl's answer to Gödel