Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    open(my $gh, ">&:utf8", \*STDOUT) or die "open: $!";
    print {$gh} $x;
    
  2. or download this
    $ LANG=C ./script
    printing to /tmp/foo
    ...
    printing to STDOUT
    printing to duped STDOUT
    Wide character in print at t5 line 18.