Hi guys, I'm new to perl and I'm having a strange issue.
I'm trying to pass an argument to a subroutine that is not in the current script, but within a package that the script uses.
my code looks like this:
$target_ip1 = GetIPadd(2);
my $deviceinfo = shift @_ or die;
The code always dies at this line, and I'm not sure why. Is it an issue with passing parameters to a subroutine not directly in the perl file?
The package utilities.pm is stored in a directory within the working directory of the first script.
script - C:\scripts\firstscript.pl
oackage - C:\scripts\Utilities\utilities.pm
Any help would be greatly appreciated.