Within the same directory
Create .pm file and use use .pm and create object for that class and using that object access the functions in .pm into the .pl file, it is oops method!
See simple module tutorial in perlmonks
Simple Module TutorialSee
Module CreationOther directory
unshift the .pm directory path to the @INC array.
See Objects in Perl
In reply to Re: perl beginner question
by vinoth.ree
in thread perl beginner question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |