Re: Bitten by a Moose in Poet::Plack::Request
Jonathan Swartz <[email protected]> Wed, 23 Jan 2013 10:55:13 -0800
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
Yes, the solution for this is for Poet and Mason to use namespace::auto clean or similar to remove the Mooseisms from their namespaces after compilation. Jon On Jan 23, 2013, at 4:12 AM, Allan Engelhardt <[email protected]> wrote: > Somebody else may get bitten by this particular Moose, so FYI I raised a bug that the two commands print different output. > > perl -E 'use Plack::Request; my $r = Plack::Request->new({REQUEST_METHOD => "happy"}); say $r->method();' > perl -E 'use Poet::Plack::Request; my $r = Poet::Plack::Request->new({REQUEST_METHOD => "happy"}); say $r->method();' > > In summary, don't use $m->req()->method() with the stock distribution. > > https://rt.cpan.org/Ticket/Display.html?id=82903 has details and proposes a stuttering fix. I implemented the workaround in my own subclass and I am now the proud owner of a Poet application that subclasses _everything_ that can be subclassed (/groans/). > > Took me way over an hour to track down: hope this helps someoneā¦. > > Allan > > ------------------------------------------------------------------------------ > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft > MVPs and experts. ON SALE this month only -- learn more at: > http://p.sf.net/sfu/learnnow-d2d_______________________________________________ > Mason-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mason-users ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnnow-d2d _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users