in reply to Output image with cgi script

You're just printing the location of the image you want. This won't work, as the browser expects the SRC attribute to point to the image data itself. You'd need either

#!/usr/bin/perl print "Content/Type: image/png\n\n"; open( PIC, "../images/pic1.png" ) or die "Can't open: $!\n"; print while <PIC>; close( PIC ); exit 0; __END__