Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FileHandle

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

FileHandle is a legacy IO class that inherits from IO::File -> IO::Handle. Constructor methods (new, new_from_fd, open, fdopen) create IO SVs directly. All IO methods (close, print, read, seek, etc.) delegate to IO::Handle’s p5 implementations.

Functions

fdopen

open from file descriptor on existing handle.

new

Returns a new IO SV, optionally opened.

new_from_fd

create handle from file descriptor.

open

open a file on this handle.

seek_cur

seek_end

seek_set

stub

pop args, push undef, return retop.