S
snowdog
Can someone please help me. I've got a perl script I've written to
send notifications to another application. The following lines are in
the same sub under the same package (line#'s included for reference).
The line 255 clearly defined the $action variable. Line 341 tries to
use it in a method for $notificationObj. Perl is telling me that
global symbol $action requires explicit package name on line 341.
Why, it IS defined on line 255.
Funny thing is, I didn't have this problem until I moved the entire
code block under a package main; statement (I'm trying to get this
thing to run as a service).
255: my $action = "notify";
341: my $notificationResult = $notificationObj->invoke($action,
"HowIs_Adapter",
$main::configRef->{'Config.howisServer'},
"HowIs Alarm",
);
I appreciate your help!
send notifications to another application. The following lines are in
the same sub under the same package (line#'s included for reference).
The line 255 clearly defined the $action variable. Line 341 tries to
use it in a method for $notificationObj. Perl is telling me that
global symbol $action requires explicit package name on line 341.
Why, it IS defined on line 255.
Funny thing is, I didn't have this problem until I moved the entire
code block under a package main; statement (I'm trying to get this
thing to run as a service).
255: my $action = "notify";
341: my $notificationResult = $notificationObj->invoke($action,
"HowIs_Adapter",
$main::configRef->{'Config.howisServer'},
"HowIs Alarm",
);
I appreciate your help!