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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAVASCRIPT Versus Perl..and the victor is......

Status
Not open for further replies.

VspecGTR3

Technical User
Feb 3, 2003
62
US
I have begin to think that anything javascript does perl can do and some more... is this true? i have seem really powerful java chat rooms with nice graphic interface can perl do this witht he nice interface?
 
Perl is best for server-side stuff and java excels at the client-side - ie within the browser (poor pun intended). The combination in unparalleled once you get your head around the various quoting tricks needed to get legible javascript inside a perl cgi script.

Perl is also very good at generating code and I've solved a number of otherwise intractible problems by having perl generate javascript code on the fly.

Good luck!
 
I agree.

Read the MAN pages on eval{} it is an extremely powerful command and easy way to built not only javascript code on the fly but PERL code also on the fly.

Fun Stuff
 
Me 2,

<script language=&quot;JavaScript&quot; src=&quot;cgi-bin/genjs.pl&quot;>
</script>

genjs.pl can then deliver script segments based on data parsed from previous messages

:p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top