Guest_imported
New member
- Jan 1, 1970
- 0
- 0
- 0
Hi all -
I'm pretty new to Perl - but I'm attempting to create a javascript with a cgi script for word definitition (a little tool tip with the definition comes up) The thing is, for the javascript to work, it has to be on 1 line, but Perl is outputting 2 lines of HTML - and the script won't work. I'm not putting any \n anywhere.
Here is what the line should look like to work:
<A HREF="docs.html" onMouseOver="drs('The lady superior of a nunnery.'); return true;" onMouseOut="nd(); return true;">abbess</A>.
Here is what the Perl turns it into:
<A HREF="docs.html" onMouseOver="drs('The lady superior of a nunnery.
'); return true;" onMouseOut="nd(); return true;">abbess</A>.
And here is the relevant Perl scripting:
{
print "$msg)\ <A HREF=\"docs.html\" onMouseOver=\"drs(\'$definition\')\; return true\;\" onMouseOut=\"nd()\; return true\;\">$word</A>.\ \ \ \ \ ";
Please, any comments on how I can get it to output just 1 line of HTML would be great!
Thanks,
nathan
I'm pretty new to Perl - but I'm attempting to create a javascript with a cgi script for word definitition (a little tool tip with the definition comes up) The thing is, for the javascript to work, it has to be on 1 line, but Perl is outputting 2 lines of HTML - and the script won't work. I'm not putting any \n anywhere.
Here is what the line should look like to work:
<A HREF="docs.html" onMouseOver="drs('The lady superior of a nunnery.'); return true;" onMouseOut="nd(); return true;">abbess</A>.
Here is what the Perl turns it into:
<A HREF="docs.html" onMouseOver="drs('The lady superior of a nunnery.
'); return true;" onMouseOut="nd(); return true;">abbess</A>.
And here is the relevant Perl scripting:
{
print "$msg)\ <A HREF=\"docs.html\" onMouseOver=\"drs(\'$definition\')\; return true\;\" onMouseOut=\"nd()\; return true\;\">$word</A>.\ \ \ \ \ ";
Please, any comments on how I can get it to output just 1 line of HTML would be great!
Thanks,
nathan