Re: How to print HTML documents from perl script?

2010-02-24 Thread boll
Jim Gibson wrote: On 2/24/10 Wed Feb 24, 2010 11:49 AM, "boll" scribbled: Hello- I am hoping there is a way to print HTML documents from a perl script. #!/usr/bin/perl -w use strict; use warnings; print "Content-Type: text/html\n\n"; open HTML,

How to print HTML documents from perl script?

2010-02-24 Thread boll
Hello- I am hoping there is a way to print HTML documents from a perl script. #!/usr/bin/perl -w use strict; use warnings; print "Content-Type: text/html\n\n"; open HTML, "table_one.html" or die $!; while( ) { print; } close HTML; This displays the HTML code in t

Re: How to pass info to a CGI program without using a form?

2009-08-24 Thread boll
Rob Coops wrote: On Sun, Aug 23, 2009 at 6:47 PM, boll wrote: There is a perl program running on my server that delivers random images to a web page. The image on the html page is specified by this html code: http://localhost/cgi/random_image.cgi"/> I would like to use this

How to pass info to a CGI program without using a form?

2009-08-23 Thread boll
There is a perl program running on my server that delivers random images to a web page. The image on the html page is specified by this html code: http://localhost/cgi/random_image.cgi"/> I would like to use this program in several places to display images from other directories, so that

Strange regular expression

2009-03-15 Thread boll
I'm trying to use the random_image.pl program from the nms-cgi project on sourceforge.net. This line has me baffled: if ( $baseurl !~ m%/$% ) I don't understand the function of the percent symbols. I hope someone can explain what it's doing. Here's the complete program: 1 #

Re: removing duplicates

2008-02-05 Thread boll
Rob Dixon wrote: boll wrote: I'm trying to write a script to remove duplicate e-mail addresses from a list. I'd like some help understanding... 1. Why does it remove all but one of the duplicate lines? 2. How can I fix it? Thanks for any advice, John ---

removing duplicates

2008-02-05 Thread boll
I'm trying to write a script to remove duplicate e-mail addresses from a list. I'd like some help understanding... 1. Why does it remove all but one of the duplicate lines? 2. How can I fix it? Thanks for any advice, John --- #!/usr/bin/perl use warnings; use strict;