Another way (besides testing for the existence of the file) is to wrap the call that crashes into an eval block and test for errors in @$ afterwards.
I think part of what you want is a way to distribute the gif with the binary of Perl itself. You could do that by ROT13 encoding the gif, embedding that into the source code of your application, and then extracting and unencoding it before your program needs it.
In reply to Re: using an image in binary perl
by Itatsumaki
in thread using an image in binary perl TK
by michaelg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |