Skip to content

Instantly share code, notes, and snippets.

@gugod
Created August 14, 2018 09:16
Show Gist options
  • Save gugod/2442174d791edd51699578e4bf8815b4 to your computer and use it in GitHub Desktop.
Save gugod/2442174d791edd51699578e4bf8815b4 to your computer and use it in GitHub Desktop.
se strict;
close(STDERR);
close(STDOUT);
open OUT1, ">:utf8", "out1.txt";
open OUT2, ">:utf8", "out2.txt";
system("perl", "-Mutf8", "-c", "-e", 'my $a = 42');
__END__
> cat out1.txt
> cat out2.txt
-e syntax OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment