in reply to OO Perl Problems

Hi! You are not wrong at all, just do what the message tells you: add a tru value at the end of your module. All modules in Perl (*.pm files) must return a true value at the end, so in your module the last line of your code must be  1;

Replies are listed 'Best First'.
Re: Re: OO Perl Problems
by demerphq (Chancellor) on Sep 13, 2002 at 15:57 UTC
    Actually the norm is to use '1' only because this will not produce warnings if you do
    perl somepackage.pm
    But you can use any true value you like, the warnings will not be generated when the line is encountered in the context of a use or require. For instance I sometimes put "by demerphq"; as the last statement in the file.

    --- demerphq
    my friends call me, usually because I'm late....