LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Printing "s in Perl (https://www.linuxquestions.org/questions/programming-9/printing-s-in-perl-688454/)

resetreset 12-05-2008 12:47 AM

Printing "s in Perl
 
Sorry for the newbie question, but in a CGI script, if I want to print the "s (quotes) that is in the webpage, which character do I use to escape the "? Is it / or \ ?

Sergei Steshenko 12-05-2008 02:08 AM

Quote:

Originally Posted by resetreset (Post 3365138)
Sorry for the newbie question, but in a CGI script, if I want to print the "s (quotes) that is in the webpage, which character do I use to escape the "? Is it / or \ ?

Such questions should not be asked.

You yourself should find answers by using Perl one-liners and/or small scripts.

Su-Shee 12-05-2008 02:19 PM

Ideally, you don't print the literal ", but the appropriate entity for " - " for example.

If you insist on printing ", use \ AND read

perldoc perlop

chapter "Quote and Quote‐like Operators" carefully.


All times are GMT -5. The time now is 04:22 PM.