in reply to Re: How do I move array contents into a directory?
in thread How do I move array contents into a directory?

If I use warnings and diagnostics, it also says,

Using a hash as a reference is deprecated

(D deprecated) You tried to use a hash as a reference, as in %foo->{"bar"} or %$ref->{"hello"}. Versions of perl <= 5.6.1 used to allow this syntax, but shouldn't have. It is now deprecated, and will be removed in a future version.

Instead of "%image_hash->{$key}", say "$image_hash{$key}".