Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2020-10-21 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (217 votes). Check out past polls.

    Notices?