ornea has asked for the wisdom of the Perl Monks concerning the following question:
my $PreMute = "Off"; Win32::GUI::Dialog(); #line 174 sub pre_mute_button_Click { $PreMute = "xxx"; if($PreMute eq "On") { $PreMute = "Off"; } else { $PreMute = "On"; } }
When ever I press the pre_mute_button button I get this message "Argument "On" isn't numeric in subroutine entry at C:\guardian_service\guardian_service.pl line 174." What puzzles me is that this assignment (added for debug) $PreMute = "xxx"; causes no messages but the assignments within the if statement generate the message What am I doing wrong Regards Justin
PS Sorry if this is repeated, I thought I was previously logged on
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Argument "On" isn't numeric in subroutine entry
by GrandFather (Saint) on Nov 20, 2013 at 07:24 UTC | |
by ornea (Initiate) on Nov 20, 2013 at 11:06 UTC |