in reply to Re: eval "require $class" seems wrong
in thread eval "require $class" seems wrong
That also does a string eval, actually. See the _require sub in Module/Pluggable/Object.pm. Maybe I'm just barking up the wrong tree - I figured that something that's not uncommon (requiring a class at runtime, from a variable) could be done in a "best practices" sort of way. Apparently not. This seems strangely un-TIMTOWDI.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: eval "require $class" seems wrong
by ikegami (Patriarch) on Aug 22, 2007 at 19:08 UTC | |
by sgt (Deacon) on Aug 22, 2007 at 20:02 UTC | |
by ikegami (Patriarch) on Aug 22, 2007 at 20:12 UTC | |
by rvosa (Curate) on Aug 22, 2007 at 22:40 UTC | |
by sgt (Deacon) on Aug 23, 2007 at 09:20 UTC |
In Section
Seekers of Perl Wisdom