in reply to Tk::Photo-data() error?

I tried the code Jouke posted in Re: How to handle Tk::Photo-data()? and actually had to make one change to get it to work on this box (Win95). The GD::Image->new('feather.jpg') causes an error as that form is looking for numeric arguments (being the dimensions of a new image). If you look in the console window you should see the message:
Use of uninitialized value in concatenation (.) or string at C:/Perl/s +ite/lib/Tk.pm line 350. Argument "feather.jpg" isn't numeric in subroutine entry at tkphoto.pl + line 17.
If you replace that line of code with:
my $im = GD::Image->newFromJpeg('feather.jpg');
You should see an image (provided you have a file of that name of course ;-). It worked for me.

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
Re: Re: Tk::Photo-data() error?
by stormwolfen (Acolyte) on Dec 16, 2001 at 23:57 UTC
    Thank you, the line you suggested cleared up my problem. I didn't see the error though. I guess I need to check to see where those errors go when you are using the Open Perl IDE.