LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] Perl CGI.pm and images

[Webdev] Perl CGI.pm and images

Kathryn Cassidy hellbunnie at irelands-web.ie
Thu Jun 29 18:55:16 IST 2000


I'm trying to do a very simple thing; print an image to a page. 
Unfortunately I've decided I'm going to do it using CGI.pm in OO mode,
so I tried

print $cgi->img(-src=>'../../v3/images/itglogo.jpg');

Which seemed to be the obvious thing to, but that just outputs the
following

<IMG>-src ../../v3/images/itglogo.jpg</IMG>

Now this is a bit odd as the html img tag isn't a paired tag.  A google
search turned up hundreds of pages but the only mention they had of
images was clickable image maps and the cgi image_button method.

Anyone know how to accomplish this simple task or am I going to have to
capitulate and just stick in a bit of plain old html?

Kathryn.




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell