Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy Perl question

Status
Not open for further replies.

Supra

Programmer
Dec 6, 2000
422
0
0
US
I've written my own matchmaking website in Perl just to teach myself the language, but there's one thing I don't know how to do: initialize a Perl function from a webpage. Can't you put <!--#exec ....--> or something like that? <!--#include ....-->? I dunno someone help me out please ;)
 
Using
Code:
<!--#include virtual=&quot;file.pl&quot; -->
should work as long as Server Side Includes are enabled. You might want to check on the syntax, though, as I'm just guessing. Another way to do it is to put
Code:
<script type=&quot;text/javascript&quot; language=&quot;javascript&quot; src=&quot;file.pl&quot;></script>
and just have the perl program return something in the form of
Code:
document.write(&quot;Your output here.&quot;);
.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top