in reply to Re^2: Replacing substrings within hash values
in thread Replacing substrings within hash values
The main problem with your code is that you must read the entire IN file for each sequence. This would work if you rewind (seek IN, 0, 0) the IN file at the end of the sequence loop. This approach is very inefficient. Run-time would become unacceptable for larger files.
Your use of last is fine for sequence I. For all other sequences, it would exit the loop before it gets to the processing. Use next instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Replacing substrings within hash values
by K_Edw (Beadle) on Mar 24, 2016 at 13:57 UTC | |
by poj (Abbot) on Mar 24, 2016 at 14:20 UTC | |
by K_Edw (Beadle) on Mar 24, 2016 at 17:25 UTC | |
by K_Edw (Beadle) on Mar 25, 2016 at 11:16 UTC | |
by BrowserUk (Patriarch) on Mar 25, 2016 at 13:22 UTC | |
by poj (Abbot) on Mar 25, 2016 at 11:30 UTC | |
by BillKSmith (Monsignor) on Mar 24, 2016 at 22:48 UTC | |
by BrowserUk (Patriarch) on Mar 25, 2016 at 01:57 UTC | |
by BillKSmith (Monsignor) on Mar 25, 2016 at 03:51 UTC |