Hi,

Can anybody let me know how to create our own modules in perl.



Thanks in advance...

Mahantesh V H


The simple answer is:

Create a file for the "sub" and save as a ".pm"...

To include it in you main program...

use lib "where/you/saved/the/sub";
use sub_you_saved;
&sub_use_saved;

That should get you started...

There is more discussed in the Camel book and:

http://search.cpan.org/dist/perl/pod/perlsub.pod

http://search.cpan.org/dist/perl/pod/perlmod.pod


jwm

-- 
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