A couple of solutions. The first escapes the quotes with a backslash, the second uses the generalised qq() operator.
--$command = "rm \"/here/$filename\""'; $command = qq(rm "/here/$filename");
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: speech marks in variable
by davorg
in thread speech marks in variable
by marauder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |