in reply to Re^5: Cutting text from the end of the file and adding it to the top
in thread Cutting text from the end of the file and adding it to the top
Also I need to print it back to the same file. Do I add the file pointer after the print statement below to print it back to the same file?a, b, c, d, aa, 12, 33, 102, bb, 111, 223, 24, aa, 88, 56, 99, bb, 130, 21, 45, aa, 88, 90, 212, bb, 500, 999, 9999
for my $record (@index){ print DATA join(",\t", $record, @values[(scalar(@headings) * $row) + .. ( +(scalar(@headings) * $row) + $#headings -1)]),"\n"; $row++;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Cutting text from the end of the file and adding it to the top
by AnomalousMonk (Archbishop) on Oct 01, 2019 at 06:10 UTC | |
by oysterperl (Novice) on Oct 07, 2019 at 09:50 UTC |