STDOUT is not OUT, you forgot to say to out; also error checking like autodie , Path::Tiny is convenience
use Path::Tiny qw/ path /; my $outfh = path( "out.html" )->openw_utf8; say $outfh "\x{FEFF}\x{1F42A}\x{1F42B}"; close $outfh;
shorter :)
use Path::Tiny qw/ path /; path( "out.html" )->spew_utf8( "\x{FEFF}\x{1F42A}\x{1F42B}" );
In reply to Re: wide character warning!
by Anonymous Monk
in thread wide character warning!
by DragonCoder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |