G
Gary Mayor
Hi,
I'm trying to insert some perl code into another file. If I use
$code = qq{
$a = "1";
if ($a eq "1") {print "A = 1";}
};
open(FILE,">runme.cgi");
print FILE $code;
close FILE;
It just says syntax error at the end of the file. I've tried escaping
the $ with \$ but that didn't work. Does anyone know how to do this?
Thanks
Gary Mayor
I'm trying to insert some perl code into another file. If I use
$code = qq{
$a = "1";
if ($a eq "1") {print "A = 1";}
};
open(FILE,">runme.cgi");
print FILE $code;
close FILE;
It just says syntax error at the end of the file. I've tried escaping
the $ with \$ but that didn't work. Does anyone know how to do this?
Thanks
Gary Mayor