in reply to Need help with includes in subdirectories

In general you want to create modules with the whole namespace, or "path" as you put it. But if your module "utils.pm" (you shouldn't start module names with lowercase) really declares itself with "package utils", then you need to add the right directories to @INC. Read up on perldoc lib.

--
edan

  • Comment on Re: Need help with includes in subdirectories

Replies are listed 'Best First'.
Re^2: Need help with includes in subdirectories
by Seventh (Beadle) on Sep 20, 2004 at 18:06 UTC
    Thanks very much for all the responses guys. :) I've got the script working with the include, using just a short use Perl::net::Utils - what I'm trying to do now though is to get the script to check out the modules that it needs instead of just checking out the entire tree.