Your code accesses an array element BEHIND the last one, due to the way you iterate over @array. Remember that array indices are 0-based, not 1-based. Unlike C, perl does not crash but instead silently appends an array element with the undefined value.
Alexander
In reply to Re: Getting error while developing a simple NagiOS plugin
by afoken
in thread Getting error while developing a simple NagiOS plugin
by tpvinay
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |