On Fri, 15 Jun 2001, Luinrandir Hernson wrote:
> This line of code in a perl script comes up with errors.
> What am I missing? problems with the word print?
> Am I missing a "/" somewhere for a reserved word? maybe the 2nd "Print"?
>
> print "<Input type=\"button\" Value=\"Print This Page\"
> onClick=\"parent.main.print()\">\n;
You are missing a final quote. Instead of using quotes and backslashes,
use the qq() operater (it functions just like ""), and your code will be a
lot cleaner. You can then use anything for your delimiter -- in this
case, I use {}:
print qq{ <Input type="button" Value="Print This Page"
onClick="parent.main.print()">\n };
-- Brett
http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I think, therefore I am... I think.