Stenyj has asked for the wisdom of the Perl Monks concerning the following question:
my $content; open (FILE,"file.html"); while (<FILE>) { $content .= $_; } close(FILE);
$content = "<!--\n" . $content . "\n-->";
my $content = param('content'); $content =~ s/<!--\n//; $content =~ s/\n-->//;
open (FILE,">file.html"); print FILE $content; close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: escaping <!-- and --> in substitution...or other help plz
by ikegami (Patriarch) on Apr 03, 2005 at 05:36 UTC | |
|
Re: escaping <!-- and --> in substitution...or other help plz
by tlm (Prior) on Apr 03, 2005 at 02:39 UTC | |
|
Re: escaping <!-- and --> in substitution...or other help plz
by chas (Priest) on Apr 03, 2005 at 02:09 UTC | |
|
Re: escaping <!-- and --> in substitution...or other help plz
by ktross (Deacon) on Apr 03, 2005 at 02:08 UTC | |
by chas (Priest) on Apr 03, 2005 at 02:38 UTC | |
|
Re: escaping <!-- and --> in substitution...or other help plz
by kprasanna_79 (Hermit) on Apr 04, 2005 at 06:57 UTC | |
|
Re: escaping <!-- and --> in substitution...or other help plz
by trammell (Priest) on Apr 03, 2005 at 22:40 UTC |