I had originally done exactly what you said in your first example. However, the variables being passed ended up being insane. I ended up with TOO MANY variables to really manage and still be able to understand the code. The PM I am trying to write is for an application and thus the need for...
Ok, I have a main script and a module I wrote, I will simplify to see if you can help.
<---------- MAIN SCRIPT ---------->
!/usr/bin/perl
use strict;
use myPM;
my $var = 'Hello World';
say_hi();
<---------- myPM SCRIPT ---------->
package myPM;
use strict;
require Exporter;
our @ISA = qw...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.