Where you'd use %image_info when using a hash, use %$image_info instead.
Where you'd use $image_info{$key} when using a hash, use $image_info->{$key} instead.
It's that simple.
See Dereferencing Syntax
and References Quick Reference
In reply to Re: Hash references and Exif data
by ikegami
in thread Hash references and Exif data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |