Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Perl Module returning a not true value

by jjdraco (Scribe)
on Sep 04, 2002 at 19:55 UTC ( #195182=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Module returning a not true value
in thread Perl Module returning a not true value

ok i see, i deleted that line thinking it was nothing. so all that line does is return a true value? Is that line always in a module?

thanks

jjdraco


Comment on Re: Re: Perl Module returning a not true value
Re: Re: Re: Perl Module returning a not true value
by sauoq (Abbot) on Sep 04, 2002 at 20:13 UTC
    so all that line does is return a true value?

    Yes.

    Is that line always in a module?

    Almost always. As you discovered, the module has to return a true value when it is loaded. By convention, modules are usually ended with a "1;" to ensure that the required true value is returned. Any true value will do though.

    -sauoq
    "My two cents aren't worth a dime.";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2014-07-11 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (220 votes), past polls