Appending to beginning of file?

2003-06-05 Thread Josh Berkus
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

Re: Appending to beginning of file?

2003-06-05 Thread Beau E. Cox
- 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

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
John, Beau, This is a Frequently Asked Question and the answer can be found in Perl's FAQs. perldoc -q beginning of a file Thanks! The perldoc -q technique is really good to know about. Looks like I'd be able to do this if I was using 5.80, but I'm not :-( So I'll just transfer the

Re: Appending to beginning of file?

2003-06-05 Thread James Edward Gray II
On Wednesday, June 4, 2003, at 04:43 PM, Josh Berkus wrote: Looks like I'd be able to do this if I was using 5.80, but I'm not :-( Tie::File can be retrieved off of the CPAN for earlier versions of Perl where is wasn't standard, if you can install modules. James -- To unsubscribe, e-mail:

Re: Appending to beginning of file?

2003-06-05 Thread Josh Berkus
James, Tie::File can be retrieved off of the CPAN for earlier versions of Perl where is wasn't standard, if you can install modules. Yeah. Sadly, it's a vendor system :-( I can't install anything. Happily, copying file content is very fast, even with 40,727 lines in the file! -- -Josh