in reply to Uninitialized Value

I don't see that $field[1] has a value. It depends entirely on the input. For a simple solution, just add a print command prior to the split so you can see what the contents are; they are probably not what you think they are. Also, I would suggest getting familiar with the debugger.

Dum Spiro Spero

Replies are listed 'Best First'.
Re^2: Uninitialized Value
by PilotinControl (Pilgrim) on May 18, 2015 at 18:12 UTC

    Field 1 does have a value...it is either L or E

      I see that you have later figured out what the problem was. If you used your DATA as input, you don't get that error. That would have been a hint to compare it to your actual input file.

      Dum Spiro Spero