more useful options | |
PerlMonks |
Re: Renaming headers works for some files but fails for some filesby Random_Walk (Prior) |
on May 09, 2013 at 10:21 UTC ( [id://1032754]=note: print w/replies, xml ) | Need Help?? |
You only print lines to your output file when they contain no whitespace.
From your input that may not be what you want. Are you after the first contiguous sequence on each line AFTER the first text with the scaffold<num> or just the entire line with the first part altered? It would also be good practice to explicitly close your files when you are finished reading/writing them. Update
Cheers,
Pereant, qui ante nos nostra dixerunt!
In Section
Seekers of Perl Wisdom
|
|