We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e60da5c commit f83f78cCopy full SHA for f83f78c
doc/Type/IO.pod6
@@ -296,11 +296,8 @@ is C<False>, implying text semantics.
296
297
The encoding to use if opened in text mode.
298
299
- # open explicitly as utf8
300
- my $fh = open("path-to-file", enc => "utf8");
301
- my $fh = open("path-to-file", enc => "utf-8"); # this form also works
302
- # open with latin1 encoding
303
- my $fh = open("path-to-file", enc => "latin1");
+ my $fh1 = open 'path-to-file'; # default, utf-8
+ my $fh2 = open 'path-to-file', :enc<latin-1>; # explicit, latin-1
304
305
Defaults to C<utf8>. The values are case-insensitive. The available encodings
306
vary by implementation and backend. On Rakudo MoarVM the following are
0 commit comments