Perl Programming/Keywords/open

Previous: oct Keywords Next: opendir

The open keyword edit

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

Syntax edit

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

Examples edit

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

See also edit

Previous: oct Keywords Next: opendir