Reply to Re: Image presentation via Perl script

Your name:

Reply:


Posted by Ed Jay on 11/01/05 06:25

"Jonathan N. Little" <lws4art@centralva.net> wrote:

>Ed Jay wrote:
>
>> I'm using a Perl script to generate html pages. I want to use images in
>> the html page. The fundamental code I use to display an image is:
>>
>> print "<p><img src=\"http://www.my-site.com/image.gif\" border=1
>> width=\"53\" height=\"32\" alt=\"logo\">\n";
>>
>> The image doesn't display.
>>
>> I have the same problem importing linked external style sheets and
>> external javascripts.
>>
>Best use CGI.pm Then your code would be... I formatted it so your can
>see the parts without the NG wordwrap confusing things
>
>use "CGI";
>
>print p(
> img(
> {
> -href=>'http://www.my-site.com/image.gif',
> -border=>1,
> -width=>53,
> -height=>32,
> -alt=>'logo'
> }
> )
>);
>
>if your want it all 'prettified' with CR's and TAB's then
>
>use CGI::Pretty;

Thanks. You introduced me to the world of Perl modules. I had no idea...

--
Ed Jay (remove M to respond by email)

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация