
madhatter
New User
May 31, 2002, 8:18 AM
Post #1 of 1
(298 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. }
|