What function do you use in Perl to display an image file in a browser? If I want to display both text and an image, should I use two separate headers or create another program?
Apparently there is some confusion as to what I'm trying to do. Here's more clarification:
I want to output 2 images from my perl script to the browser, one will be generated within the script and the other is a separate image file stored on the server. I want to output both images as well as some text.
When I tried to open the file with this:
I get a bunch of symbols and gibberish. I thought that maybe there is another function to display image files vs. text files.
Also, since I want to output both text & images, I wanted to know if I can use 2 different header types in my script or should I create a separate script for text & another for images.