![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML parsing by PERL | avik1983 | Shell Programming and Scripting | 3 | 02-23-2007 09:25 AM |
| perl and html | marcpascual | Shell Programming and Scripting | 8 | 09-21-2005 07:47 PM |
| Perl: Variable input via HTML | douknownam | Shell Programming and Scripting | 5 | 02-13-2005 11:39 PM |
| Number of html files | giuseppe74 | UNIX for Dummies Questions & Answers | 5 | 05-20-2002 06:08 AM |
| Moving .html files while preserving hyperlink integrity? | Buddy123 | UNIX for Dummies Questions & Answers | 1 | 12-21-2000 03:59 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using Perl to add hyperlink to html files
Hi ,
I have written a csh script which will output file named " myoutput.html " displayed below. I am tried to ftp this html file into a local web server so that it can be displayed to public sharing this server and i would want to add a hyperlink to " XX " , " YY " , " ZZ ". Can this be done using perl ? Can anybody show me an example of the code to perform this ? XX 20 $50 YY 30 $60 ZZ 40 $70 |
|
||||
|
It doesn't look like HTML to me.
I thought you would want to generate Code:
<html>
<head>
<title>My webpage</title>
<head>
<body>
<a href="some-url">XX</a> 20 $50<br>
<a href="some-url">YY</a> 30 $60<br>
<a href="some-url">ZZ</a> 40 $70<br>
</body>
</html>
|
|
||||
|
Hi Porter,
Can i use perl to create your HTML code before i ftp ? I would want to perform everything in my Solaris OS that is 1) generate the .html extension file using csh 2) create hyperlink in the html file ( using perl maybe or html ? ) 3) ftp to the server |
|
||||
|
Code:
#!/usr/bin/perl print "<html>\r\n"; print "\t<head>\r\n"; print "\t\t<title>My webpage</title>\r\n"; print "\t<head>\r\n"; print "\t<body>\r\n"; print "\t\t<a href=\"some-url\">XX</a> 20 \$50<br>\r\n"; print "\t\t<a href=\"some-url\">YY</a> 30 \$60<br>\r\n"; print "\t\t<a href=\"some-url\">ZZ</a> 40 \$70<br>\r\n"; print "\t</body>\r\n"; print "</html>\r\n"; |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|