in reply to modules and namespace

The path to a module file only affects what you use to load it, and that in turn depends on what's in @INC. Within the file, you can declare as many packages as you like and give them whatever names you like.

For consistency, paths and module names often match. This is not required by Perl, only good sense.

Replies are listed 'Best First'.
Re: Re: modules and namespace
by RandomWalk (Beadle) on Nov 20, 2003 at 22:34 UTC
    I think I understand. Even the Lectoids needed different last names, not just different addresses? For possible future reference: NO! "use" just inserts code with checks (cf. perlfaq8) and a "package" declaration changes the namespace, so two modules may have the same name with subs of the same name but live in different directories; it is the most recently declared package that provides the code.