Migrated from [rt.perl.org#7813](https://rt-archive.perl.org/perl5/Ticket/Display.html?id=7813) (status was 'resolved') Searchable as RT7813$
Activity
p5pRT commentedon Oct 11, 2001
From madison@transmeta.com
I open a file to append, then try to seek() to the beginning of the file:
--------------------------------------------------
open(FILE,">>some_file") || die("Fie!\n");
print "Position: ",tell(FILE),"\n";
seek(FILE,0,0);
print "Position: ",tell(FILE),"\n";
print FILE "Should be on the first line\n";
close(FILE);
--------------------------------------------------
The seek() doesn't do anything, though the tell() claims that it did.
(Run this a few times and look at "some_file" and watch the tell() values)
Perl Info