in reply to Random Image Generator

{ print <IMG>; }
will only read from IMG until the first "\n". You can't assume the jpeg files don't include this byte. Try changing it to:
{ local $/; print <IMG>; }
This will read in all of IMG and print it.

blokhead (200th post)

Replies are listed 'Best First'.
Re: Re: Random Image Generator
by Thelonius (Priest) on Oct 13, 2003 at 19:13 UTC
    Actually print <IMG>; will print the whole file. The "print" provides a list context and readline in a list context reads the whole file.