in reply to Reading file into a hash

at first glance¹ this doesn't seem to make much sense:

if ( defined $seq ) { # ... $seq = '';

empty strings are defined, you may either want to assign undef or just use that '' is false.

Cheers Rolf

( addicted to the Perl Programming Language)

¹) that is w/o trying to understand the full intended logic

Replies are listed 'Best First'.
Re^2: Reading file into a hash
by PerlSufi (Friar) on May 28, 2014 at 14:56 UTC
    Hi Lanx,
    I tried that, too. I also updated my post to reflect not using  if ( defined $seq) anymore