Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Re: problem with require lib file

by bmccoy (Beadle)
on Dec 12, 2001 at 09:50 UTC ( #131179=note: print w/replies, xml ) Need Help??

in reply to Re: problem with require lib file
in thread problem with require lib file

Library module files are supposed to return a true value. Having a one at the end accomplishes this. I don't recall the exact reason but I think it's because, underneath all of the fancy importing and namespace magic that 'use' does, there's a 'do FILE' deep down, and it returns the last value evaluated in a file, and you will always want that to be true.

-- Brett

Go not to the Elves for counsel, for they will say both no and yes

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2023-05-28 09:16 GMT
Find Nodes?
    Voting Booth?

    No recent polls found