----- Original Message ----- 
From: "Josh Berkus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 04, 2003 11:17 AM
Subject: Appending to beginning of file?


Folks,

Hit there!  I just joined the list.  Amazing what one can do with
rudimentary
web-browsing skills.

Is there any easy way to append a line or lines to the *beginning* of a text
file?  I've been through the Llama and Camel books, and the perldoc for
Open,
and I can't seem to find an easy way to do this.

Pointers to online docs are fine with me.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco

No, there is no way. You must write your prepended lines to a
new file and then append your old file, and, delste ( or
rename to a backup) your old file, and rename your new file back to the old
file. All easy to do with Perl.

Aloha => Beau;



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to