in reply to seek function always returns true
See eof:
cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."
open(my $fh, '>', 'f00') or die $!; seek($fh, 100, 0) or die "seek:$!"; print "eof!" if eof($fh); close($fh);
cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."
|
---|
In Section
Seekers of Perl Wisdom