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
In reply to Re^2: Run Perl 5 in the Browser!
by LanX
in thread Run Perl 5 in the Browser!
by haukex
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |