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
In reply to Re: Re: insert into beginning of file
by broquaint
in thread insert into beginning of file
by rchou2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |