Arunbear has asked for the wisdom of the Perl Monks concerning the following question:
Hello friends, is there any way to abbreviate code like this:
Thanks for any suggestions.
$obj = Very::Long::Class::Name->new; $result = Very::Long::Class::Name->other_class_method;
In Python you can do
import Very.Long.Class.Name as Name obj = Name() Name.other_class_method()Does Perl have an analogous shortcut?
Thanks for any suggestions.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: The Very::Long::Class::Name problem
by Aristotle (Chancellor) on Oct 13, 2003 at 20:32 UTC | |
Re: The Very::Long::Class::Name problem
by dragonchild (Archbishop) on Oct 13, 2003 at 20:29 UTC | |
Re: The Very::Long::Class::Name problem
by broquaint (Abbot) on Oct 14, 2003 at 00:37 UTC | |
Re: The Very::Long::Class::Name problem
by bart (Canon) on Oct 14, 2003 at 12:15 UTC |
Back to
Seekers of Perl Wisdom