Name
new
Synopsis
$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.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.