open my $fh, '>', 'filename' or die $!; print $fh "\xef\xbb\xbf"; close $fh; [download]
In reply to Re: creating empty utf8 file by borisz in thread creating empty utf8 file by Anonymous Monk