sOKOle has asked for the wisdom of the Perl Monks concerning the following question:
O.K. but how to append a file to the begining?
open (GB,"+<$bookfile")||die "can't open\n";\n seek (GB,0,0); print GB "$data1|$data2|\n";
works but always the first line is deleted. How to write a file at the begining and preserve all data? sOKOle
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: begining of a file
by chipmunk (Parson) on Aug 21, 2001 at 17:47 UTC | |
by s0ttle (Scribe) on Aug 21, 2001 at 20:46 UTC | |
|
Re: begining of a file
by busunsl (Vicar) on Aug 21, 2001 at 17:07 UTC | |
|
Re: begining of a file
by Hofmator (Curate) on Aug 21, 2001 at 17:14 UTC | |
|
Re: begining of a file
by joefission (Monk) on Aug 21, 2001 at 17:13 UTC | |
by clintp (Curate) on Aug 21, 2001 at 19:11 UTC | |
|
Re: begining of a file
by sOKOle (Acolyte) on Aug 23, 2001 at 15:50 UTC |