in reply to Writing infront of the file
Remember this was just an idea. It probably isn't close to best solution.use strict; my $wholepage = `/bin/cat filename.txt`; open(OUTFILE, ">filename.txt") || die "Could not open outfile $!"; print OUTFILE "your lines"; print OUTFILE $wholepage; close OUTFILE;
|
|---|