in reply to using an image in binary perl TK

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.

Replies are listed 'Best First'.
Re: Re: using an image in binary perl
by liz (Monsignor) on Nov 16, 2003 at 15:42 UTC
    ...by ROT13 encoding the gif...

    What will that bring you? That's not going to help you troublesome byte values in your source code. I assume you mean Base64 (MIME) encoding?

    Liz

      Ahh, you're right; I plead early-morning insanity. :)