|
Hi,
I'm writing a html file from Perl. I have to intialise a PHP variable in the same html code. The code is given below. But it throws an error in the error log while accessing the web page.
---
---
---
print text "<?php $reglink = \"http://www.codetoad.com/"; ?>";
print text "<body bgcolor=#ffffff>\n";
---
---
---
The error is
Global symbol "$reglink" requires explicit package name at /san/sample.pm line 100
Is there any way to fix it...
|
|
|
Its because it thinks that $reglink is a variable within the perl code itself. PLace a \ in front of it. Like this:
\$reglink
I hope that is what you ment.
|
|
|
Excellent.
It works after escaping as you said
Thanks a lot.
|
|
|
|
|
|
|
// |