in reply to Interpolating strings within strings

eval should do it, but you have to make sure that the command string gets double-quotes left and right.
an example:
my $FTPPath = "/my/ftp/path"; my $command = 'cd $FTPPath'; my $command_new = eval "\"$command\""; print "$command_new\n";

---- amphiplex