in reply to Re^4: concatenating multiple lines without using . operator
in thread concatenating multiple lines without using . operator

So - you want to SLURP and CONCATNATE. Try replacing your entire WHILE loop with:
do {local $/; ($seq{$chr}=<IN>)=~s/[\s\r\n\t]//g};

             I hope life isn't a big joke, because I don't get it.
                   -SNL

Replies are listed 'Best First'.
Re^6: concatenating multiple lines without using . operator
by frozenwithjoy (Priest) on Jun 14, 2012 at 05:03 UTC
    I think this might cause a problem since there will be occasional lines that look like >chr02 which are the sequence IDs and meant to be hash keys. Slurping like this would miss the transition between chromosomes or distinct DNA sequences.
      I acknowledge your point - I'm still not clear about what the OP's requirements are - I was merely trying to show how she/he could slurp and concatenate.

                   I hope life isn't a big joke, because I don't get it.
                         -SNL

        Yes, OP was less than explicit.