Joe_Cullity has asked for the wisdom of the Perl Monks concerning the following question:
I'm just using the seek(handel, 0, 2) for now, but would like comments if anyone has any ideas. Joe_Cullityopen ($archive_file_handel, '+<', $archive_file_spec) or die "Can't op +en $archive_file_spec: $!"; $first_line = <$archive_file_handel>; # actually only line seek($archive_file_handel, 0, 2); # works , appends to end seek($archive_file_handel, 0, SEEK_END); # fails, writes to begining print { $archive_file_handel } "another piece of data to go after head +er\n"; # Write out junk for now
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question on seek()
by borisz (Canon) on Aug 04, 2005 at 19:18 UTC | |
by Joe_Cullity (Beadle) on Aug 04, 2005 at 19:29 UTC | |
by dave_the_m (Monsignor) on Aug 04, 2005 at 19:34 UTC | |
by borisz (Canon) on Aug 04, 2005 at 19:36 UTC |