Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Perl Elitist Code vs Functional Code

by Anonymous Monk
on Aug 13, 2012 at 01:46 UTC ( [id://987013]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl Elitist Code vs Functional Code
in thread Perl Elitist Code vs Functional Code

closures really?

I'd rather use die/croak and a something like Catalyst::Plugin::ErrorCatcher

Replies are listed 'Best First'.
Re^4: Perl Elitist Code vs Functional Code
by tobyink (Canon) on Aug 13, 2012 at 05:59 UTC

    Yes, closures are how Sub::Exporter works. Moose uses Sub::Exporter under the hood to export its has, extends, etc keywords. has, extends, etc are all closures. Catalyst is Moose-based. You use Catalyst; you're using closures.

    Catalyst is Plack-based. Plack is an implementation of the PSGI spec. Under PSGI all web apps are closures. You use Catalyst; you're using closures.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-03-29 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found