in reply to tell() on sysread()

tell() is working with the buffer, but sysread() is bypassing the buffer. You need systell(), and if there isn't one, you're out of luck. {grin}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: tell() on sysread()
by Taulmarill (Deacon) on Oct 25, 2004 at 15:50 UTC
    are you certain? beacuse the following works for me
    perl -e'open FH,"<test.pl"||die$!;$fh=\*FH;sysread($fh,$foo,256); $bar=tell($fh);print"$foo\n$bar\n";'
      Yet it fails miserably on Win32. The side-effects of using sysread are system-specific.