in reply to both base and sub class in same file

Foo.pm is loaded both as a script and as a module (by use base). Try perl -c -we "use Foo"

Replies are listed 'Best First'.
Re^2: both base and sub class in same file
by pvncad (Initiate) on Oct 11, 2007 at 13:58 UTC
    Thanks. But is this the best way to do syntax check of a module ?

      What metric should I use to judge whether it's the best besides "It works"?