in reply to Error "Compilation failed in require" with "use" syntax

perl -c is your friend in cases like this. Run that against your .pl file and both .pm files and you'll probably find the error.

Replies are listed 'Best First'.
Re^2: Error "Compilation failed in require" with "use" syntax
by SuzuBell (Acolyte) on Oct 03, 2013 at 21:09 UTC
    Thanks for the advice, but this is all I get:
    perl -c test.pl
    Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at pmFile1.pm, line 7393. test.pl syntax OK
    perl -c pmFile1.pm
    pmFile1.pm syntax OK
    perl -c pmFile2.pm
    pmFile2.pm syntax OK