mmnormyle has asked for the wisdom of the Perl Monks concerning the following question:
packageuse Utilities::utilities; $target_ip1 = GetIPadd(2);
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.sub GetIPadd { my $deviceinfo = shift @_ or die; ...... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problems with passing arguments to a subroutine in a perl package
by NetWallah (Canon) on Jul 17, 2013 at 00:32 UTC | |
|
Re: Problems with passing arguments to a subroutine in a perl package
by mmnormyle (Initiate) on Jul 17, 2013 at 00:39 UTC | |
by Anonymous Monk on Jul 17, 2013 at 03:57 UTC | |
|
Re: Problems with passing arguments to a subroutine in a perl package
by Anonymous Monk on Jul 17, 2013 at 01:12 UTC | |
|
Re: Problems with passing arguments to a subroutine in a perl package
by Anonymous Monk on Jul 17, 2013 at 01:54 UTC |