At 12:11 -0400 03/06/2011, Brandon McCaig wrote:
It would probably help if you could show us a simple example of what you're trying and what is wrong with it. :)... For example, if the current Web page is http://foo/bar/baz.html
I made it clear that I am serving the page dynamically from cgi-bin. Here is an example:
<http://bd8.com/cgi-bin/test.pl> The image resides in the images/ directory within cgi-bin/. Here is the script. The image does not appear. #!/usr/local/bin/perl use strict; use CGI qw~:standard~; my $full_url= url(-full=>1); print "Content-type: text/html;charset=utf-8\n\n"; while (<DATA>){ s/<!--full_url-->/$full_url/; print; } __DATA__ <html><body><div> <p> $full_url: <!--full_url--> </p> <p> Image from cgi-bin/images/: <img alt="“test image”" src="images/test.jpg" /> </p> </div></body></html> -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/