NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Jul 01, 2013 at 19:18 UTC
  • Comment on Reaped: use of uninitialized value in array

Replies are listed 'Best First'.
Re: use of uninitialized value in array
by hdb (Monsignor) on Jul 01, 2013 at 09:10 UTC

    First hint: the statement <FILE> reads the contents of FILE until the next newline, chomp removes that trailing newline, so as a result $_ will not contain any newlines afterwards. So your splitting on newlines makes no sense as neither $first nor $second (being parts of $_) will contain any newline.

Re: use of uninitialized value in array
by Anonymous Monk on Jul 01, 2013 at 09:00 UTC
Re: use of uninitialized value in array (slots)
by Anonymous Monk on Jul 01, 2013 at 08:58 UTC

    but i have split the tsv file and added data to it.

    :) I have put money into a slot machine, but didn't return me any money, I got uninitialized error, what to do, why it happen?

Re: use of uninitialized value in array
by ww (Archbishop) on Jul 01, 2013 at 13:56 UTC
    New words, same old question: "How do I debug a problem?"

    Answer: read the replies to your numerous similar questions.


    If you didn't program your executable by toggling in binary, it wasn't really programming!