Re: [Catalyst] sub default :Private versus sub xxx :Path

2006-07-12 Thread Marcus Ramberg
On 7/11/06, Brandon Black <[EMAIL PROTECTED]> wrote: I would tend to think that "default" is the least-preferred way ofdoing these days.  "default" used to be an interesting way to docertain tricky things, but most of those things can now be handled better via the new "Chained" stuff.  I can't imag

Re: [Catalyst] sub default :Private versus sub xxx :Path

2006-07-11 Thread Brandon Black
On 7/11/06, John Napiorkowski <[EMAIL PROTECTED]> wrote: > With Catalyst we now have three ways to hook an action to the package > namespace (That I know of) > > package myapp::Controller::demo > > 1) sub default :Private {...} > 2) sub index :Private {...} > 3) sub x :Path {...} [] I wou

Re: [Catalyst] sub default :Private versus sub xxx :Path

2006-07-11 Thread Ash Berlin
John Napiorkowski wrote: > With Catalyst we now have three ways to hook an action to the package > namespace (That I know of) > > package myapp::Controller::demo > > 1) sub default :Private {...} > 2) sub index :Private {...} > 3) sub x :Path {...} > > All the above match /demo and 1,3 match /

[Catalyst] sub default :Private versus sub xxx :Path

2006-07-11 Thread John Napiorkowski
With Catalyst we now have three ways to hook an action to the package namespace (That I know of) package myapp::Controller::demo 1) sub default :Private {...} 2) sub index :Private {...} 3) sub x :Path {...} All the above match /demo and 1,3 match /demo/arg1/arg2, etc while 2 doesn't. Now