Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Tracing an Uninitialized Error

by Crackers2 (Parson)
on Jan 30, 2014 at 17:21 UTC ( #1072706=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1072706]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2022-08-08 09:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found