Try this simple test script
Update 1 : Corrected URL (thanks to NetWallah).#!/usr/bin/perl use strict; use CGI ':standard'; use CGI::Carp 'fatalsToBrowser'; my $file = "/cgi-bin/PTF//WP_20140410_19_01_49_Pro.jpg"; print header, start_html('Test'), img({-src=>$file,-alt=>'image'}), end_html;
In reply to Re^5: Not able to display an image in perl CGI
by poj
in thread Not able to display an image in perl CGI
by aniammu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |