This is incomplete documentation:
MoarVM has open
supported the more common POSIX flags since 2015, including O_EXCL
through a named parameter :exclusive
.
The flag combination you are looking for
my $fh = open "file", :mode<wo>, :create, :exclusive;
,
my $fh = open "file", :x;
, , , Perl 6 I/O Routines. . ; , :mode<pipe>
JVM (, , , MoarVM).