p4raw-id: //depot/perl@11799
# check <> pseudoliteral
-open(try, "/dev/null") || open(try,"Dev:Null") || open(try,"nla0:") || (die "Can't open /dev/null.");
+if ($^O eq 'MacOS') {
+ open(try,"Dev:Null") || (die "Can't open /dev/null.");
+} else {
+ open(try, "/dev/null") || open(try,"nla0:") || (die "Can't open /dev/null.");
+}
+
if (<try> eq '') {
print "ok 6\n";
}