Re: "Simple" Question

Gisle Aas (aas@bergen.sn.no)
06 May 1997 12:46:17 +0200


Marc Langheinrich <marclang@cs.washington.edu> writes:

> sub implementor
> {
> 	...
>     $ic = "LWP::Protocol::$scheme";  # default location
> 	...
>         my $package = "$ic.pm"; 
>         $package =~ s|::|/|g;  # Unix specific?? 
>         eval { require $package }; 
> 	...
> }
> 
> Maybe the substitution there (s|::|/|g) isn't portable to your system?! 
> I actually don't know why a simple
> 
> 	eval "require $ic;"
> 
> wouldn't work. (but then again, I didn't write the package, maybe 
> there was a reason...)

Just me trying to avoid eval "" because it is slow and evil :-)

-- 
Gisle Aas <aas@sn.no>