Anything wrong with using AnyEvent::Handle for files?

Marc Lehmann schmorp at schmorp.de
Tue Aug 11 17:07:32 CEST 2015


On Mon, Aug 10, 2015 at 07:15:04PM -0700, Mike Schilli <office at perlmeister.com> wrote:
> that $fh isn't advanced, so "tell $fh" stays at 0 and subsequent
> checks (e.g. for meanwhile appended data) fail:

tell in perl only works on buffered I/O, I think? you'd have to use
sysseek (see perldoc -f tell) to query the kernel to get the actual file
pointer.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list