in reply to Creating a perl script for database monitoring
foreach $data ( @$data) {
That doesn't look right. You have the same variable in the iterator as in the list over which you are iterating. At best, that's confusing. Eg. instead:
foreach my $thisone (@$data) {
You might also consider some more meaningful name than $data but that's purely a stylistic tip.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating a perl script for database monitoring
by Jeylox (Initiate) on Apr 08, 2016 at 13:09 UTC | |
by SimonPratt (Friar) on Apr 08, 2016 at 13:25 UTC | |
by poj (Abbot) on Apr 08, 2016 at 13:49 UTC | |
by Jeylox (Initiate) on Apr 08, 2016 at 15:23 UTC | |
by poj (Abbot) on Apr 08, 2016 at 15:41 UTC |