CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
print line



Mar 31, 2000, 4:30 PM

Post #1 of 2 (878 views)
print line Can't Post

I am sort of new at perl. I have configured alot of scripts but they all used raw html and not the line print.

The code I need to modify is as follows.

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

sub show_page {

print "Content-type: text/html\n\n";
print "<html>\n";
print "<head><title>$title1<\/title><\/head>\n";
print "<body>\n";
print "<center><h1>$title1<\/h1><p><hr><br>\n";
print "This CGI script will check the validity of links in any static\n";
print "webpage. Type in the url and hit the button to receive a summary\n";
print "of the links on a page. The script will not work on dynamically\n";
print "built pages.<p><hr>\n";
print "<form method=\"POST\" ";
print " action=\"$check\?command=check\"><br>\n";
print "Enter the URL of the page to check.<br>\n";
print "<input type=\"text\" name=\"url\" value=\"\" size=50><br>\n";
print "<input type=\"submit\" name=\"submit\" value=\"submit\"><br><\/form>\n";
print "<hr><center><a href=\"http\:\/\/www\.tboneconnection\.com\" target=\"\_blank\">T-Bone Connection<\/a><br>\n";
print "<\/center><\/b>\n";
print "<hr><\/center><\/body><\/html>\n";


I need to add

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>

<div align="center">
<p><a href=""><img src="" width="550" height="77" Border="0"></a><br>
<a href=""><font face="Arial, Helvetica, sans-serif" size="3">Home</font></a> <font face="Arial, Helvetica, sans-serif" size="3"> <a href="">Tools</a> <a href="">Resources</a> <a href="">Articles</a> <a href="">News</a></font></p>

<!-- Begin OrbitCycle Code -->
<SCRIPT LANGUAGE="JavaScript1.1" SRC="">
<A HREF="" TARGET="_top">
<IMG SRC=""></A>
<!-- End OrbitCycle Code -->


My problem is I don't know how much code needs to go on each new print line and where to put the /\'s

I also have another script that is the same way I need to modify so knowing where to put those would be a great help.


[This message has been edited by JeremyL (edited 03-31-2000).]

Administrator / Moderator

Apr 1, 2000, 4:46 PM

Post #2 of 2 (878 views)
Re: print line [In reply to] Can't Post

Check out japhy's article at

Of particular use to you is the "Here Docs" discussion at

This will straighten that code right out.


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives