develooper Front page | perl.beginners | Postings from January 2002

RE: Library

Thread Previous
Kingsbury, Michael
January 30, 2002 15:02
RE: Library
Message ID:
You need it to return a true value to indicate it successfully loaded.
Simpliest way is to have a 1; at the end of the file outside of any subs.
If your library required to initialize something, then perhaps you wouldn't
return a 1 if that initialization failed.


-----Original Message-----
From: Chi Lin []
Sent: Wednesday, January 30, 2002 5:56 PM
Subject: Library

I am trying to create my own library. I figured it should have an extension 
of .pm and must be within the $PATH, where perl searches for

The following error is displayed: did not return a true value at program_name, line 2.
line 2 is just "use mylib"

What is the recommended approach for creating your own library?

- Chi

MSN Photos is the easiest way to share and print your photos:

To unsubscribe, e-mail:
For additional commands, e-mail:

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About