Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: OO Perl Problems

by Flexx (Pilgrim)
on Sep 13, 2002 at 19:29 UTC ( [id://197701]=note: print w/replies, xml ) Need Help??


in reply to OO Perl Problems

Hi, just to make this complete, the place you would have had to read was perlmod. It mentions the return true thing. I think perltoot could use a "see also" pointer to perlmod.

Replies are listed 'Best First'.
Re: Re: OO Perl Problems
by Nemp (Pilgrim) on Sep 13, 2002 at 20:00 UTC
    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

      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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://197701]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found