laziness, impatience, and hubris | |
PerlMonks |
Re: FOREACH Variablesby NetWallah (Canon) |
on Aug 11, 2009 at 01:17 UTC ( [id://787456]=note: print w/replies, xml ) | Need Help?? |
Couldn't you just move the "if ($alarms.." inside the "foreach $key.." loop ? BTW - why is "use strict;" commented out ? You should probably change "foreach $key ..." to "foreach my $key...", and "my $cmd=..." instead of $cmd=..." .. but then you do not use $cmd, so just use the backtick without assigning it to anything. Potentia vobiscum ! (Si hoc legere scis nimium eruditionis habes)
In Section
Seekers of Perl Wisdom
|
|