On 13-Jul-2001 Fletch wrote:
>         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.

I'm aware of this.  However, POE::Filter::Reference doesn't do it this way
and I wonder why... Amoungst other things, this is less safe.  I don't see
any other reason, though.

-Philip

Reply via email to