in reply to Getting error while developing a simple NagiOS plugin

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

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)