I want to be able to access those comments through perl. Is there a module which already exists which does this?
Not what you asked for, but this site:
http://osx.freshmeat.net/projects/libjpeg/has an OS X version of "rdjpegcom" which is a system tool for reading JPG comments.