in reply to uninitialized split value

Use of uninitialized value $seqres in split at
You would get that error if the %record_types hash does not have a SEQRES key:
use Data::Dumper; print Dumper(\%record_types);

Replies are listed 'Best First'.
Re^2: uninitialized split value
by etheral (Acolyte) on Oct 17, 2011 at 14:45 UTC
    I know. The funny thing is it does have those keys. Paranormal activity here??
        I am unable to solve this problem by any means possible. I use this syntax (split syntax, at the beginning of each sub) and it works for helix, turn and sheet, but it doesn't for seqres. Seqres key exists in hash. The error Use of uninitialized value $seqres in split at ./PDB_secondary_ex11.5.pl line 174, <IN> line 1726. refers to the last line in the file handle. I tried adding/removing whitespaces and basically I did what I could think of to solve this but I couldn't that's why I'm asking you know.