in reply to perl beginner question
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl beginner question
by Corion (Patriarch) on Jun 02, 2009 at 11:22 UTC | |
|
Re^2: perl beginner question
by Anonymous Monk on Jun 02, 2009 at 11:37 UTC |