I've got a script which i execute, and it has the line:
use IndexHandler;
I have created the package IndexHandler.pm, and when I run my script, it loads it fine, and I can run one of the subroutines in IndexHandler.pm.
However, I need to pass 3 variables to the subroutine. I've tried this by putting:
IndexHandler::saveInvertedToFile(%wordList, "$stop", "$stem"
and in my package, I have:
my(%hash, $stop, $stem) = @_;
But when i try to use the variables, they have no value.
Am I doing it the right way??
Any help appreciated
use IndexHandler;
I have created the package IndexHandler.pm, and when I run my script, it loads it fine, and I can run one of the subroutines in IndexHandler.pm.
However, I need to pass 3 variables to the subroutine. I've tried this by putting:
IndexHandler::saveInvertedToFile(%wordList, "$stop", "$stem"
and in my package, I have:
my(%hash, $stop, $stem) = @_;
But when i try to use the variables, they have no value.
Am I doing it the right way??
Any help appreciated