Hello: On Sat, Dec 31, 2011 at 02:56:50AM +0200, Igor Dovgiy wrote: > $filedata{$_} = [$filesize, $filemd5]; *snip* > my ($size, $md5) = @{ $filedata{$filename} };
Alternatively, store a nested hash-reference: $filedata{$File::Find::name} = { md5 => $file_md5, size => $file_size, }; # ... my ($size, $md5) = @{$filedata{$filename}}{qw/size md5/}; That way you don't need to remember which [arbitrary] order they're in, and if the order changes, or more fields are added, the meaning of subsequent code doesn't change. Regards, -- Brandon McCaig <bamcc...@gmail.com> <bamcc...@castopulence.org> Castopulence Software <https://www.castopulence.org/> Blog <http://www.bamccaig.com/> perl -E '$_=q{V zrna gur orfg jvgu jung V fnl. }. q{Vg qbrfa'\''g nyjnlf fbhaq gung jnl.}; tr/A-Ma-mN-Zn-z/N-Zn-zA-Ma-m/;say'
signature.asc
Description: Digital signature