in reply to Re: Image content help
in thread Image content help

I changed the second code to
#!c:/perl/bin/perl print "Content-type: image/gif\n\n"; open(IMG, "packplan.gif"); binmode(IMG); my @file = <IMG>; close(IMG); foreach my $line (@file){ print $line; }
still no go. This is my first time to try this image thing and I am lost. All the help you are giving me is appreciated.

Replies are listed 'Best First'.
Re^3: Image content help
by PodMaster (Abbot) on Jun 17, 2004 at 07:25 UTC
    You forgot to binmode STDOUT.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re^3: Image content help
by ambrus (Abbot) on Jun 18, 2004 at 07:08 UTC

    Again, either use an absolute path in the open, or else chdir to the correct directory.