in reply to dumb question about perl module creation and use

use lib '/Users/johnson/MyCal-DoStuff/lib';

Shouldn't that be

use lib '/Users/johnson/MyCal/DoStuff/lib'; ##...........................^

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: dumb question about perl module creation and use
by Eliya (Vicar) on Jan 13, 2012 at 18:33 UTC

    Depends on where the OP has installed his module to.

    After running h2xs, the source templates reside in .../MyCal-DoStuff/lib  (i.e. .../MyCal-DoStuff/lib/MyCal/DoStuff.pm).

    After building (perl Makefile.PL; make) they temporarily live in .../MyCal-DoStuff/blib/lib.

    And after installation they are wherever they were installed to.

    In case the OP did not actually install the module, the correct include path (for testing purposes) would've been (presuming he created the initial module directory in his home)

    use lib '/Users/johnson/MyCal-DoStuff/blib/lib';

    In that temporary build tree, there should also have been generated the autosplit.ix file, which wasn't found in the OP's case...

    P.S., calling h2xs with the -A option (i.e. h2xs -AX -n MyCal::DoStuff) does not generate the AutoLoader stuff in the first place.