Welcome to the Monastery | |
PerlMonks |
Re^3: How to match the sequences with headersby Lotus1 (Vicar) |
on Oct 23, 2011 at 16:07 UTC ( [id://933218]=note: print w/replies, xml ) | Need Help?? |
At the beginning of your program put in $/="\n\n"; Then inside the while loop if $_ matches 'sequence' print $_ to out1; if it matches 'secstr' print $_ to out2.
In Section
Seekers of Perl Wisdom
|
|