in reply to Packages & Makefile.PL

The Makefile.PL you posted for Foo::Bar seems basic enough and fine to me.

Do you also have a Makefile.PL for Foo::Bar::Baz in the subdirectory with Baz.pm? It sounds like you might not, and you need it for this to work.

If you create a Makefile.PL for each module, ExtUtils::MakeMaker will recurse and find each of them when you run "perl Makefile.PL" from the top-level directory.

After that, Foo::Bar should see Foo::Bar::Baz when "make test" is run.

- Matt Riffle

Replies are listed 'Best First'.
Re: Re: Packages & Makefile.PL
by tachyon (Chancellor) on Apr 14, 2002 at 18:27 UTC

    Do you also have a Makefile.PL for Foo::Bar::Baz in the subdirectory with Baz.pm? It sounds like you might not, and you need it for this to work.

    Actually you don't. You need just the one Makefile.PL See my answer below. If you don't believe me get CGI::Simple and have a look at the structure. This uses one Makefile.PL and installs CGI::Simple CGI::Simple::Utils CGI::Simple::Cookie and CGI::Simple::Standard

    When in doubt see how someone else has done it and R&D (Ripoff and Duplicate)

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print