in reply to Re: Controlling the count in array
in thread Controlling the count in array

Hi Jim, It's worked however some cases I got "Use of uninitialized value in join or string at" or "Use of uninitialized value in split at". in both files I have coincident matching keys and I can not have records like these:
,,,feb,21,5,5
How can I solve this, a simple defined exists would solve this?

Replies are listed 'Best First'.
Re^3: Controlling the count in array
by jimpudar (Pilgrim) on Jun 15, 2018 at 17:40 UTC

    You could add a check in each of the while loops at the start to validate the data is in the format you expect.

    If you include the portion of the inputs on which the program is failing, I might be able to help you more.

    Best,

    Jim

    πάντων χρημάτων μέτρον έστιν άνθρωπος.