in reply to Perl includes to reuse code.

Currently I have my Utils.pm as below: package Utils;
use system_mod_includes;

So should I write my Utils.pm as below?
use system_mod_includes;
package Utils;

Replies are listed 'Best First'.
Re^2: Perl includes to reuse code.
by Athanasius (Archbishop) on May 30, 2016 at 07:38 UTC

    No, in my test scripts, Utils.pm begins as follows:

    package Utils; use system_mod_includes;

    But note that there is no package directive in system_mod_includes.pm. If I add one, I get an error like the one you originally reported:

    Undefined subroutine &Utils::Dumper...

    I assume this is a namespace problem.

    Hope that helps,

    Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,