Perl Programming/Keywords/open
Appearance
The open keyword
[edit | edit source]open is the Perl pragma to set the default input/output layers (PerlIO).
Syntax
[edit | edit source] use open IN => <info>, OUT => <info2>;
Examples
[edit | edit source] use open IN => ":crlf", OUT => ":bytes";
[…]
use open IO => ":encoding(iso-8859-7)";