in reply to speech marks in variable

Simply escape them with a backslash:
$command = "rm \"/here/$filename\"";

(And as an aside, why don't you want to use unlink? It's going to be a heck of a lot safer than using this type of code.)

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

Replies are listed 'Best First'.
Re: Re: speech marks in variable
by marauder (Novice) on Dec 07, 2001 at 20:15 UTC
    can't use unlink cos i'm using $command in an ssh session