Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Run Perl 5 in the Browser!

by LanX (Saint)
on Oct 05, 2018 at 17:32 UTC ( [id://1223588]=note: print w/replies, xml ) Need Help??


in reply to Re: Run Perl 5 in the Browser!
in thread Run Perl 5 in the Browser!

From what I understood it's implemented on the Perl side as XS-code inlining JS code and returning proxy objects.

There where various examples how it looks like in this thread.

e.g. in Re^2: Run Perl 5 in the Browser!

js('document')->getElementById('my_button') ->addEventListener('click', sub { js('window')->alert("You clicked the button!"); } );

so you could interpret method chaining as a "DSL" (at least Fowler does)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-03-28 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found