< Perl Programming < Keywords

The open keyword

open is the Perl pragma to set the default input/output layers (PerlIO).

Syntax

  use open IN  => <info>, OUT => <info2>;

Examples

  use open IN  => ":crlf", OUT => ":bytes";
  []
  use open IO  => ":encoding(iso-8859-7)";

See also

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.