From: Jarkko Hietaniemi Date: Sun, 12 Nov 2000 23:57:29 +0000 (+0000) Subject: Document tell() on special streams. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=cfd73201012eb44f660e4e9beb308155e13fd1a2;p=p5sagit%2Fp5-mst-13.2.git Document tell() on special streams. p4raw-id: //depot/perl@7661 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index b469014..2049dd5 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -5072,6 +5072,10 @@ Returns the current position for FILEHANDLE, or -1 on error. FILEHANDLE may be an expression whose value gives the name of the actual filehandle. If FILEHANDLE is omitted, assumes the file last read. +The return value of tell() for the standard streams like the STDIN +depends on the operating system: it may return -1 or something else. +tell() on pipes, fifos, and sockets usually returns -1. + There is no C function. Use C for that. =item telldir DIRHANDLE