Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: 8.83 FileHandleChapter 8
Standard Modules
Next: Reference: new_from_fd
 

new

$fh = new FileHandle [filename[, mode]]

Constructor. Creates a FileHandle, which is a reference to a newly created symbol. The optional parameters, filename and mode, are passed to open. The FileHandle object is returned if the open succeeds, otherwise it is destroyed.


Previous: 8.83 FileHandlePerl in a NutshellNext: Reference: new_from_fd
8.83 FileHandleBook IndexReference: new_from_fd