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: sysread FILEHANDLE,SCALAR,LENGTH,OFFSET
Opens the file whose filename is given by
FILENAME, and associates it with
FILEHANDLE is an expression, its value is used as the name of the real filehandle wanted. This function calls the underlying operating system's
open function with the parameters
The possible values and flag bits of the
MODE parameter are system-dependent; they are
available via the standard module
Fcntl. However, for historical reasons, some values are universal: zero means
read-only, one means write-only, and two means read/write.
If the file named by
FILENAME does not exist and the open call creates it (typically because
MODE includes the
O_CREAT flag), then the value of
PERMS specifies the permissions of the newly created file. If
PERMS is omitted, the default value is 0666, which allows read and write for all. This default is reasonable: see
The IO::File module provides a more object-oriented approach, if you're
into that kind of thing.
Source: Perl builtin functions
Copyright: Larry Wall, et al.
Previous: syscall LIST
(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