On Mon, 5 Jan 2004, Owen Cook wrote:

> 
> On Sun, 4 Jan 2004, r huber wrote:
> 
> > I am writing several subroutines that I want to make
> > available to other programs without directly including
> > the code in those programs. Can anyone explain how to
> > do this or where to go to find out how to do it.
> 
> Just make a file "mylibrary.pl" or what ever
> 
> Put the common subroutines in it
> 
> In you main program, add the line
> 
> require "/some/where/mylibrary.pl";



And I forgot to add, as the last line, place

1;



owen


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to