Your first perl script sends '1>>$filename' (single quotes, this is NOT a
variable) ... and you want to replace '$filename' with the contents of the
variable $filename?

If I have that correct, a regex will help:

my $string='1>>$filename'; # This is coming from your first perl script.
my $filename='filename.txt';
$string=~s/\$filename/$filename/; # Regex! Escape the $ ...
print "$string\n";

Pete


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to