The first thing you must do is read through the perlmod documentation so you understand exactly what it is modules do and how they interact with the calling program. I would also recommend strongly that you read the entry on the @INC variable in perlvar. Understanding this is also important.
After that, determine the directory structure and name for your module, like Mymods/Thismod.pm, create the file and place your subs within the skeleton below:
package Mymods::Thismod; ### YOUR CODE GOES HERE ### 1;
If you have read the documentation recommended then this will all come clear to you.
Update Make sure you read through frankus' post above too, all the comments he makes about your code are well worth following.
$japh->{'Caillte'} = $me;
In reply to Re: Creating module files from subroutines
by Caillte
in thread Creating module files from subroutines
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |