>>>>> "Philip" == liste <[EMAIL PROTECTED]> writes:
Philip> POE::FIlter::Reference does the following to check if the
Philip> package $freezer is loaded : exists $::{$freezer.'::'}
Philip> and the following to load the package eval { eval {require
Philip> "$freezer.pm"; import $freezer ();};
Philip> This fails pityfully if $freezer contains ::. The
Philip> following patch cures this. I don't know if s(::)(/)g; is
Philip> compatible with Mac OS, though. Maybe we should just eval
Philip> "use $freezer ();";
If $freezer contains a package name then:
eval qq{require $freezer; $freezer->import()};
should be sufficient, and will let perl manage any necessary
path mangling. From perldoc -f require . . .
If EXPR is a bareword, the require assumes a ".pm"
extension and replaces "::" with "/" in the
filename for you, to make it easy to load standard
modules. This form of loading of modules does not
risk altering your namespace.
--
Fletch | "If you find my answers frightening, __`'/|
[EMAIL PROTECTED] | Vincent, you should cease askin' \ o.O'
770 933-0600 x211(w) | scary questions." -- Jules =(___)=
| U