develooper Front page | perl.perl5.porters | Postings from July 2016

Re: [perl #128607] POD: sysseek

Thread Previous | Thread Next
From:
Zefram
Date:
July 12, 2016 19:49
Subject:
Re: [perl #128607] POD: sysseek
Message ID:
20160712194942.GR1170@fysh.org
via RT wrote:
>  Note the in bytes: even if the filehandle has been set to operate
>  on characters (for example by using the ":encoding(utf8)" I/O
>  layer), "tell" will return byte offsets, not character offsets
>  (because implementing that would render "sysseek" unacceptably
>  slow).
>
>Where it says "tell" I think it should say "sysseek".

No, it really does mean "tell", but the wording is a bit awkward.
It's obviously been copied from the equivalent paragraph in the "seek"
doc, and that seems to have been copied from the equivalent for "tell",
where it fits rather better.  Note that it's referring to a function
*returning* a byte offset, which "tell" relevantly does.  "sysseek"
also returns an offset, but that isn't discussed (and so isn't relevant)
until the last paragraph of this doc.

-zefram

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About