[Catalyst] Catalyst best practices?
    A. Pagaltzis 
    pagaltzis at gmx.de
       
    Mon Jul 31 21:25:33 CEST 2006
    
    
  
* Jonathan Rockway <jon at jrock.us> [2006-07-31 17:20]:
> 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
Ugh. Use a sane module instead:
    use aliased 'Very::Long::ClassName::Here' => VLCNHere;
    my $obj = VLCNHere->new();
Regards,
-- 
#Aristotle
*AUTOLOAD=*_;sub _{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;
    
    
More information about the Catalyst
mailing list