<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1001089" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1001089</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-javascript#comment-1004737</link>
    <description> &lt;p&gt;Thanks to everyone for all your help!!&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 May 2000 04:59:00 +0000</pubDate>
 <dc:creator>lkeller</dc:creator>
 <guid isPermaLink="false">comment 1004737 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-javascript#comment-1004736</link>
    <description> &lt;p&gt;here is another, very simple sample for using javascript inside your perl script:&lt;br /&gt;
&lt;BLOCKQUOTE&gt;code:&lt;/blockquote&gt;&lt;/p&gt;
&lt;pre&gt;
#!/usr/bin/perl
$var = &amp;lt;&amp;lt;&quot;EOF&quot;;
&amp;lt;script language=&quot;javascript&quot;&amp;gt;
alert(&quot;WELCOME MY FRIEND&quot;);
&amp;lt;/script&amp;gt;
EOF

print &quot;Content-type:text/html\n\n&quot;;
print $var;
[/code]
$var will contain all of the javascript.  After you print out the http header, you just need to print the $var, and it will execute the javascript command.

You can see it in use at &lt;a href=&quot;http://www.wiredstart.com/cgi-bin/alert.pl&quot; class=&quot;bb-url&quot;&gt;http://www.wiredstart.com/cgi-bin/alert.pl&lt;/a&gt; 

Hope that helps a little

------------------
&lt;a href=&quot;http://www.wiredstart.com&quot; class=&quot;bb-url&quot;&gt;http://www.wiredstart.com&lt;/a&gt;  : The Technology Start Page &lt;/pre&gt;</description>
     <pubDate>Wed, 10 May 2000 20:09:00 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1004736 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-javascript#comment-1004735</link>
    <description> &lt;p&gt;Not sure what the best example would be, but let’s say you’ve got a Perl script that prints a form box with dynamic content printed inside (for example the price of a product or what ever) you’ve also got a Java Script running in the PRINTED html that requires that only numbers can be entered into the text box.&lt;/p&gt;
&lt;p&gt;Perl is server reliant and Java Script is client reliant. Which means Perl must be run from a server with Perl installed and Java Script must be run from a client (browser) with Java Script capabilities. You can mix the two together to their limitations (i.e. the Java Script HAS to be on the HTML page before it can run).&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Adam&lt;br /&gt;
AIS Internet Solutions&lt;br /&gt;
 &lt;a href=&quot;mailto:adam@aisinternet.com&quot; class=&quot;bb-email&quot;&gt;adam@aisinternet.com&lt;/a&gt;&lt;br /&gt;
 &lt;a href=&quot;http://www.aisinternet.com&quot; class=&quot;bb-url&quot;&gt;www.aisinternet.com&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 May 2000 17:07:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1004735 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-javascript#comment-1004734</link>
    <description> &lt;p&gt;Thanks for your reply, but excuse me for appearing dumb (I&#039;m completeley new to this - both perl &amp;amp; javascript), what do you mean by &quot;printing before executing&quot;?&lt;/p&gt;
&lt;p&gt;Can you show me an example?&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 May 2000 11:33:00 +0000</pubDate>
 <dc:creator>lkeller</dc:creator>
 <guid isPermaLink="false">comment 1004734 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/perl-javascript#comment-1004733</link>
    <description> &lt;p&gt;Java Script is browser reliant. You can embed it into a Perl script, however it has to print to your browser before it can execute.&lt;/p&gt;
&lt;p&gt;------------------&lt;br /&gt;
Adam&lt;br /&gt;
AIS Internet Solutions&lt;br /&gt;
  &lt;a href=&quot;mailto:adam@aisinternet.com&quot; class=&quot;bb-email&quot;&gt;adam@aisinternet.com&lt;/a&gt;&lt;br /&gt;
 &lt;a href=&quot;http://www.aisinternet.com&quot; class=&quot;bb-url&quot;&gt;www.aisinternet.com&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;[This message has been edited by adam (edited 10 May 2000).]&lt;/p&gt;
 </description>
     <pubDate>Wed, 10 May 2000 06:19:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1004733 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
