Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Code + Results to HTMLby TheoPetersen (Priest) |
on Feb 25, 2001 at 03:48 UTC ( [id://60693]=note: print w/replies, xml ) | Need Help?? |
Since you are going to stuff the whole file into a scalar
anyway, let Perl do that for you:
You caught the need to escape the tag characters in the code, but there are some cases that will slip through. CGI's escapeHTML function can filter the whole file at once; I'm sure there are other implementations too.
In Section
Code Catacombs
|
|