http://qs1969.pair.com?node_id=1072706


in reply to Tracing an Uninitialized Error

Most likely explanation is that there's actually an empty line at the end of your data file, which in turn causes the last emelent of @SNPs to be an empty string, which in turn will cause the undefined $position

Depending on your editor, the empty line might not be easy to spot. Doing a hexdump or similar might help.

Replies are listed 'Best First'.
Re^2: Tracing an Uninitialized Error
by ccelt09 (Sexton) on Jan 31, 2014 at 01:24 UTC

    The last two lines of a hexdump looked like this for my input file, not quite an empty line but definitely asymmetrical / an incomplete line at the very end.

    00019a0 30 35 36 30 09 31 35 35 32 37 30 35 36 30 00019ae

    I don't quite know what to make of this, if it is the source of the error or if it can be rectified

      The problem probably is not on line 264. See 1072739.