home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


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 FileHandle Perl in a Nutshell Next: Reference: new_from_fd
8.83 FileHandle Book Index Reference: new_from_fd

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.