Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: use, require, and constructors

by Duco (Sexton)
on Oct 27, 2004 at 22:14 UTC ( [id://403167] : note . print w/replies, xml ) Need Help??


in reply to use, require, and constructors

Another possibility is to alias the entire namespace into your own. In other words, you're effectively just making a short name for that package. Something like:

*{__PACKAGE__.'::Module::'} = *{'Local::Some::Real::Cool::Module::'}; $object = Module->new();