Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Perl: the Markov chain saw
 
PerlMonks  

Re: require in .pm and .pl = blow up?

by le (Friar)
on Aug 14, 2000 at 19:27 UTC ( [id://27813]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to require in .pm and .pl = blow up?

This is just a wild guess, but maybe there's a missing "1;" and the end of vars.pl.

Replies are listed 'Best First'.
RE: Re: require in .pm and .pl = blow up?
by chromatic (Archbishop) on Aug 14, 2000 at 19:53 UTC
    A decent guess, but not the case.

    Perl requires that the last statement in a module be true... a variable assignment returns a true value, so that'll work.

    Generally people put 1; as the last line in module just because there's almost no way it can ever evaluate to anything but true, whereas lots of other seemingly straightforward statements actually might. See perlmod for details.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://27813]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.