Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Argument for Perl ( again and again )

by tobyink (Abbot)
on Oct 16, 2012 at 19:08 UTC ( #999401=note: print w/ replies, xml ) Need Help??


in reply to Re: Argument for Perl ( again and again )
in thread Argument for Perl ( again and again )

"If I need to do AJAX on a webpage I need to use JavaScript. As far as I can tell there is no way around that if I want to be browser neutral."

You could always write client-side scripts in a subset of Perl.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re^2: Argument for Perl ( again and again )
Re^3: Argument for Perl ( again and again )
by blue_cowdawg (Prior) on Oct 16, 2012 at 19:25 UTC
        You could always write client-side scripts in a subset of Perl.

    Write in Perl and translate to JavaScript? Pretty much amounts to the same thing. As far as I remember you can't run Perl in a browser unless they snuck that into the more recent HTML standards... :-)


    Peter L. Berghold -- Unix Professional
    Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

      Perlito (linked in my previous message) is a Perl interpreter written in Javascript. Thus allowing you to run a subset of Perl within the browser.

      And the HTML standards certainly do allow Perl to be implemented by browsers. <script> has a type attribute which is used to indicate the scripting language. Browsers are free to support whatever scripting languages they like. There is indeed a plugin written by ActiveState providing Perl support for Internet Explorer.

      perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

      You can run perl in some browsers. Old, nasty browsers.

      Activestate released PerlScript for IE many many years ago.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999401]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2014-08-30 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (293 votes), past polls