in reply to Using a perl script as a graphic?

Content type should go first. Content length should go later ( and is optional ). try "binmode(PIC)" before reading from <PIC> and dumping the gif. -