Resources

Online Documentation

  • perldoc perlref— Information on references including references to file handles.

Modules

  • Fcntl— Provides named open flags, such as O_RDONLY and O_RDWR.

  • IO::Handle— An object-oriented interface to the I/O system.

  • IO::File— A superclass of IO::Handle for files.

  • Symbol— Symbol table manipulation functions.

Functions

  • perldoc –f open— Information on opening a file.

  • perldoc –f sysopen— An interface to the systems open call.

  • perldoc –f binmode— Set the binary mode of a file.

  • perldoc –f read— Read a series of bytes from a file.

  • perldoc –f write— Write a series of bytes to a file.

  • perldoc –f pack— Turn a list of strings into binary data.

  • perldoc –f unpack— Turn binary data into strings that Perl can use.

Get Perl for C Programmers 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.