Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

by blue_cowdawg (Monsignor)
on Oct 16, 2012 at 19:25 UTC ( #999406=note: print w/replies, xml ) Need Help??


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

      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
  • 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 (Abbot) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999406]
help
Chatterbox?
[stevieb]: it's a reminder to re-inforce it :P
[atcroft]: james28909: That particular questions was a bit of trick, actually (depending on the country you are in). More interesting is, if you are trying to subtract from an epoch time, for instance, you might have to consider when/if DST occurs for a location,
[atcroft]: because you may have to adjust the number of seconds you change from an epoch from 86400 (not to mention leap seconds)....
[atcroft]: james28909: Although if your program is using a database, you might be able to "pass the buck" to the database and ask it to do the date change for you....
[stevieb]: ++ atcroft

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2017-04-29 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (531 votes). Check out past polls.