http://www.perlmonks.org?node_id=999406


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

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
  • Comment on Re^3: Argument for Perl ( again and again )

Replies are listed 'Best First'.
Re^4: Argument for Perl ( again and again )
by tobyink (Canon) on Oct 16, 2012 at 20:33 UTC

    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'
Re^4: Argument for Perl ( again and again )
by DrHyde (Prior) on Oct 17, 2012 at 11:29 UTC

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

    Activestate released PerlScript for IE many many years ago.