in reply to Re: insert into beginning of file
in thread insert into beginning of file
If you're not doing line-based insertion into your file then your best choice is to open a new file and write to that.use strict; use Tie::File; tie(my @fl, 'Tie::File', 'somefile.txt') or die("ack - $!"); unshift @fl, 'a line of text here'; untie @fl;
_________
broquaint
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: insert into beginning of file
by rchou2 (Novice) on Jul 22, 2002 at 14:11 UTC | |
by ignatz (Vicar) on Jul 22, 2002 at 14:22 UTC |