[Chicago-talk] Shortening a module name

Randal L. Schwartz merlyn at stonehenge.com
Mon Feb 27 11:24:23 PST 2006


>>>>> "Steven" == Steven Lembark <lembark at wrkhors.com> writes:

Steven> What about just using a variable to store the class in 
Steven> a variable?

Steven>     my $class =
Steven> 'Some::Very::Long::Pacakge::Class::You::Want::To::Use::Here';

Steven>     my $obj = $class->constructor( @argz );

that's a step in the wrong direction.   If you make it a method, you can
override it in a subclass, which is a Good Thing.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


More information about the Chicago-talk mailing list