[sf-perl] dynamic use command

Randy J. Ray rjray at blackperl.com
Fri Apr 4 18:54:48 PDT 2008

> So, will eval have the module loaded outside the eval? 
> Or will I have to require it "for real"?
> I thought eval was a sandbox of sorts.

No, it merely prevents a fatal error from stopping the program (instead, the 
error message is saved in the special variable, $@). The code is loaded, and 
any exporting it does is to the package-space in which the eval was called.

Randy J. Ray                                                rjray at blackperl.com
Sunnyvale, CA                                              http://www.rjray.org

More information about the SanFrancisco-pm mailing list