Perl Programming/Keywords/open

Previous: oct Keywords Next: opendir

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

Previous: oct Keywords Next: opendir
Category:Book:Perl Programming#Keywords/open%20
Category:Book:Perl Programming