in reply to How to read Image Resolution on Mac OS X
I have never used Perl on a Mac, but maybe you should try to change the relevant line to: