thats weird... I have copy and pasted your direct code into an editor, saved it as "test.cgi", uploaded it, set permissions to 755, and it says there is an Internal server error.
The joy of coding :)
I tried that code cgilover, and for some reason it doesn't work. I think you definetaly have to put a backslash in front of the characters " and '. Even when I do, it doesn't work.
i tried $string =~ s/\"/\'/g; but it doesn't work.
I also tried $string =~ tr/\"/\'/d; and that doesn't work.
Its just funny how every text editor has this option to seach for " and replace it with '. I can't seem to figure out how to make it work.
I am trying to send HTML emails from Perl. The quotation marks are giving me trouble. Since HTML works without quotations or with this ('), how can I have a subroutine go through a flat file or variable and delete all the quotations?
Examples. <p align="right"> is no good
It works like this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.