in reply to Creating a module in a directory to accomplish ::

You're useing Module::Submodule1, but your package declaration just says Submodule1. The use statement succeeds because it finds lib/Module/Submodule1.pm but when it compiles that code, it sees the package Submodule1 instead of Module::Submodule1. Thus, your module's import method (inherrited from Exporter) is never called, and you don't import the functions.

Try changing your package declaration to package Module::Submodule1; and it should work.

Replies are listed 'Best First'.
Re^2: Creating a module in a directory to accomplish ::
by newest_newbie (Acolyte) on Aug 29, 2005 at 21:02 UTC
    Thanks very much... it worked!

    Believe me, I have been struggling with this for couple of months now..

    Thanks once again