die "Error message for the user"instead.
push @myArray, {'md5' => $md5, 'dir' => $dir, 'file' => $fileName};
And to retrieve something from the hash reference, just write, for instance ${$hashRef}{'md5'}, or whatever. This way, you do not have to parse them again later. Oh, and chomp them when you put them in, not when you use them (it's much better to have clean values, than having to clean them each time you want to use them).In reply to Re^2: File copy based on conditions in two arrays
by kzwix
in thread File copy based on conditions in two arrays
by james28909
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |