[Omaha.pm] Lost in Plack

Sterling Hanenkamp sterling at hanenkamp.com
Wed Oct 5 14:19:24 PDT 2011


cf sub builder:

    local $_mount = sub {
        $mount_is_called++;
        $urlmap->map(@_);
        $urlmap;
    };
    local $_add = sub {
        $self->add_middleware(@_);
    };
    local $_add_if = sub {
        $self->add_middleware_if(@_);
    };


On Wed, Oct 5, 2011 at 4:06 PM, Jay Hannah <jay.hannah at iinteractive.com>wrote:

> haha... no clue what's going on...
>
> j
>
>
>
>
> https://github.com/miyagawa/Plack/blob/master/lib/Plack/Builder.pm#L63
>
> our $_add = our $_add_if = our $_mount = sub {
>    Carp::croak("enable/mount should be called inside builder {} block");
> };
>
> sub add      { Carp::carp("add is deprecated. Use 'enable'"); $_add->(@_) }
> sub enable         { $_add->(@_) }
>
>
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>



-- 
Andrew Sterling Hanenkamp
sterling at hanenkamp.com
785.370.4454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20111005/438be7c0/attachment.html>


More information about the Omaha-pm mailing list