damian has asked for the wisdom of the Perl Monks concerning the following question:
now my script should run like this via IMG SRC tag.1|/images/banners/internal/image1.gif|http://www.blah.com 2|/images/banners/internal/dumb.gif|http://www.dumb.com 3|/images/banners/internal/perl.gif|http://www.perl.com 4|/images/banners/internal/slashdot.gif|http://www.slashdot.org 5|/images/banners/internal/linux.gif|http://www.linux.org 5|/images/banners/internal/apache.gif|http://www.apache.org 6|/images/banners/internal/bsd.gif|http://www.bsd.org 7|/images/banners/internal/penguin.gif|http://www.penguin.com
the first IMG SRC tag runs the script showad.cgi and with the "begin" parameter having the value 1 and "end" parameter having the value "3" means that the script will pick the lines 1 to 3 from the above data file and print them randomly. same with the next IMG SRC having "begin" parameter with value 4 and "end" parameter 7 means that the script will begin at line 4 to 7 and randmly displays the image to the HTML file. i know you could help me on this guys. thanks in advance.<img src="/cgi-bin/showad.cgi?type=internal&begin=1&end=3"> <img src="/cgi-bin/showad.cgi?type=internal&begin=4&end=7">
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: picking x numbers of lines from a file
by turnstep (Parson) on Sep 19, 2000 at 14:14 UTC | |
Re: picking x numbers of lines from a file
by larsen (Parson) on Sep 19, 2000 at 13:35 UTC | |
by dchetlin (Friar) on Sep 19, 2000 at 15:52 UTC | |
by larsen (Parson) on Sep 19, 2000 at 17:12 UTC | |
RE: picking x numbers of lines from a file
by little (Curate) on Sep 19, 2000 at 21:05 UTC |