in reply to Re: OO Perl Problems
in thread OO Perl Problems

Hi,

If you read perltoot carefully it is mentioned at the end of multiple code listings like this;

   1;  # so the require or use succeeds

Also, I failed to find reference to it in perlmod? Can someone point it out to me in there?

With respect,
Neil

Replies are listed 'Best First'.
Re^3: OO Perl Problems
by Flexx (Pilgrim) on Sep 13, 2002 at 20:44 UTC

    Sorry, I should have in the first place, but I didn't know how to do that using [brakets]...

    Outch! I just realized it's not in the onsite perlmod (which is ages old ;). I was actually looking at http://www.perldoc.com/perl5.6/pod/perlmod.html#Perl-Modules. At the end of the long code example/template in the Perl Modules section, you'll find the hint.

    Indeed, I believe this should be mentioned in a much more prominent place. It should be in the text somewhere, not just in the examples. Thinking back, I can't remember how I learned about it...

    Cheers,
    Flexx

Re: Re: Re: OO Perl Problems
by Elgon (Curate) on Sep 14, 2002 at 11:26 UTC

    Hi Nemp,

    It does indeed say this, however I printed it out for bedtime reading and the main bit of code I was studying is spread over two pages so I missed it. On later examination after reading the above again, it got found.

    Thanks, Elgon

    "Rule #17 of Travel: Never try and score dope off Hassidic Jews while under the impression that they are Rastafarians."
           - Pete McCarthy, McCarthy's Bar