On Jan 23, 2006, at 2:20, Ken Perl wrote:

Hi,
May I import all modules located in a directory called
'/opt/myperlmodules' in Begin block like this?

$myModules = "/opt/myperlmodules";
lib->import($myModules);

You want to load them, or to let use() be able to find them? The solution to the former looks like a combination of File::Find and require() or some similar technique, whereas the solution to the latter looks like common use of the lib pragma.

-- fxn


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to