|more useful options|
any way to fill calling namespace with a "use Module"?by blue_cowdawg (Monsignor)
|on Feb 23, 2013 at 19:39 UTC||Need Help??|
blue_cowdawg has asked for the
wisdom of the Perl Monks concerning the following question:
OK: my sick mind has come up with something and I'm trying to figure out how to do it:
Let's say I have three modules defined as:
and somewhere in some main package I have:
is there a way from within either Top or one of the subordinate modules to change $obj to be reblessed as either SubordinateA or SubordinateB?
What I'm trying to accomplish is during Top's execution in some sub based on some conditionals instantiate either of the subordinate modules (six actually) and pass that blessed object back to the calling environment.
Does my question make sense?
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg