Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

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

by chromatic (Archbishop)
on Aug 14, 2000 at 23:53 UTC ( [id://27821]=note: print w/replies, xml ) Need Help??


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

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://27821]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-03-28 22:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found