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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Add quotes to html

 



madhatter
New User

May 31, 2002, 8:18 AM

Post #1 of 1 (354 views)
Add quotes to html Can't Post

I need a Perl script that can add quotes around an html command, like

<img src=image.gif> will result in:
<img src="image.gif">

I know this is a difficult problem, but it is an emergancy!

What have thus far:

#!/usr/bin/perl

$htmldoc = "file.html";

open(FILE,"$htmldoc");
@html = <FILE>;
close(FILE);

foreach $line (@html) {
$line = lc($line);

## something to add quotes here.

}

 
 


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

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