[Catalyst] Catalyst best practices?

Jonathan Rockway jon at jrock.us
Mon Jul 31 17:15:10 CEST 2006


> So unless you're allergic to writing myapp::site::something::or::other

This qualifies as a worst-practice, but you can use the "abbreviation" 
pragma:

  use abbreviation qw(Very::Long::ClassName::Here);
  my $obj = V::L::CN::Here->new;        # same


http://search.cpan.org/~miyagawa/abbreviation-0.02/lib/abbreviation.pm

Really, though, your text editor should take care of that for you.  Try 
M-/ in emacs.

Regards,
Jonathan Rockway



More information about the Catalyst mailing list