Search Perl pages
Professions, Sciences, Humanities, Business, ...
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Conversions, tests, processing, manipulation,...
Integer, Floating point, Matrix, Statistics, Boolean, ...
Algorithms, Memory, Process control, Debugging, ...
Data storage, Integrity, Encryption, Compression, ...
Networks, protocols, Interprocess, Remote, Client Server, ...
Timing, Calendar and Clock, Audio, Video, Printer, Controls...
Management, Filtering, File & Directory access, Viewers, ...
Next: system LIST
Sets FILEHANDLE's system position using the system call |
lseek(2). It bypasses stdio, so mixing this with reads (other than
tell() may cause confusion.
FILEHANDLE may be an expression whose value gives the name of the filehandle. The values for
WHENCE are 0 to set the new position to
POSITION, 1 to set the it to the current position plus
POSITION, and 2 to set it to
POSITION (typically negative). For
WHENCE, you may use the constants
SEEK_END from either the IO::Seekable or the
Returns the new position, or the undefined value on failure.
A position of zero is returned as the string ``0 but true''; thus
TRUE on success and
FALSE on failure, yet you can still easily determine the new position.
Source: Perl builtin functions
Copyright: Larry Wall, et al.
Previous: sysread FILEHANDLE,SCALAR,LENGTH,OFFSET
(Corrections, notes, and links courtesy of RocketAware.com)
Up to: Stdio Stream file operations
Up to: File Access
Search | About | Comments | Submit Path: RocketAware > Perl >
RocketAware.com is a service of Mib Software
Copyright 2000, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments