is there an equivilent to perls qq() function?
thanksCode:print qq(some text with unescaped quotes " here " );
Printable View
is there an equivilent to perls qq() function?
thanksCode:print qq(some text with unescaped quotes " here " );
I am not sure if there is. can you explain this one to me though.
what exactly is the qq() doing??? I don't see it doing anything. :rolleyes:Code:# Double quotes: qq()
$firstVar = 1;
$secondVar = qq($firstVar);
print "with qq() secondVar = $secondVar\n";
Prints: with qq() secondVar = 1
well, qq() will basically just let you specify a string without escaping quotes.
for example:
$this and $that both == and god said "let there be light"Code:$this = "and god said \" let there be light \"";
$that = qq(and god said "let there be light");
thanks, that makes more since. the only thing I can think of is stripslashes(). other than that I don't know. can't you use single quotes.