in reply to Help for generating multiple file from singl e file and parsing it.
date after #OE# till the end of line will be inside individual output file.if data between #RD# and #OE# is repeated that will come in same individual output file.open my $INFILE, '<', 'myfile'; my $number = 0; while ($INFILE){ $_ =~ m/\#RD\#(.*?)\#OE\#/; my $number++; open my $OUTFILE, '>', "outfile$number"; print $OUTFILE $1; close $OUTFILE; } close $INFILE;
??. don't understand this. Could you explain better what do you want to do?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Help for generating multiple file from singl e file and parsing it.
by sarf13 (Beadle) on Oct 15, 2011 at 21:08 UTC | |
by pvaldes (Chaplain) on Oct 16, 2011 at 09:59 UTC |