From: ara.t.howard@... Date: 2006-09-28T23:24:56+09:00 Subject: Re: Alias for a class? On Thu, 28 Sep 2006, Robert Klemme wrote: > Kevin Jackson wrote: >> So my request is: >> a: is it possible to alias a class (I know you can do it with >> methods)? b: if not can it be added (perhaps with aka)? > > You can store that class in any variable or constant you like. So all of > these work: > > $cl = ::StupidlyLongLibName::LongModuleName::LongClassName > @cl = ::StupidlyLongLibName::LongModuleName::LongClassName > @@cl = ::StupidlyLongLibName::LongModuleName::LongClassName > cl = ::StupidlyLongLibName::LongModuleName::LongClassName > Cl = ::StupidlyLongLibName::LongModuleName::LongClassName > > Note: depending on where in the code you are some of these do not really make > sense. my favourite is d, f, fu = Dir, File, FileUtils since those three go together in verbose code so often. -a -- in order to be effective truth must penetrate like an arrow - and that is likely to hurt. -- wei wu wei