in reply to Use of uninitialized value $data
My hint is to not trust your logging further up and to move the logging to where the problem is. If $data is undef, then $datapair does not contain a =.
So, investigate $datapair and the contents of @data just before your loop.
Maybe/most likely, $line is not what you think it is. Maybe it ends with a comma and a newline, and split helpfully keeps that newline as its own element in @data?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use of uninitialized value $data
by ImJustAFriend (Scribe) on Nov 13, 2018 at 21:57 UTC | |
by Corion (Patriarch) on Nov 13, 2018 at 22:00 UTC | |
by Marshall (Canon) on Nov 14, 2018 at 01:12 UTC |