Stephen Redding wrote at Fri, 09 Aug 2002 10:54:01 +0200: > I have a text file that i want to insert two lines to the top of. > how do i do this?
A solution where it's not necessary to think is to use the Tie::File module. use Tie::File; tie my @line, 'Tie::File', 'filename.txt' or die "..."; unshift @line, $line1, $line2; Greetings, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]