[Catalyst] New class templates
svilen at netclime.com
Fri Oct 21 14:42:01 CEST 2005
> >>>> MyApp->config( name => 'MyApp' );
> >>> Why not __PACKAGE__ instead of MyApp?
> >> Why?
> > Because __PACKAGE__ always works, you don't have to s/MyApp/$MyApp/
> > several times.
> The helper script already replaces "MyApp" with whatever the name of
> your application is. :)
IMHO the very first version of the application is usually called "MyApp" and
then later it is renamed to "TheProjectName" :)
I'd prefer the __PACKAGE__ but it isn't critical.
More information about the Catalyst