in reply to Is there any INCLUDE equivalent in Perl ?

Remember that when you're splitting functions off into their own library and useing or requireing them, that those libraries must explicitly return true.
putting
return 1; or
return "true"; or even
return "cheese sandwich and pie";
will ensure that your module doesn't cause any problems when you attempt to compile your projects.
update as tye pointed out, the return may be implicit -- you may omit the return from the above lines.

Replies are listed 'Best First'.
Re: (boo)Re: Is there any INCLUDE equivalent in Perl ?
by lmarecha (Acolyte) on Mar 02, 2001 at 03:12 UTC
    Just noticed it (before doing the mistake).
    I think I will go for the use of the 'use' function. I don't know why but I always thinked (until now) that the 'use' was only for module and package with the right declaration header.

    lmarecha