print $mystdout "ok ",fileno($mystdout),"\n";
-$fh = new FileHandle "TEST", O_RDONLY and print "ok 2\n";
+$fh = (new FileHandle "./TEST", O_RDONLY
+ or new FileHandle "TEST", O_RDONLY)
+ and print "ok 2\n";
$buffer = <$fh>;
($rd,$wr) = FileHandle::pipe;
-if ($^O eq 'VMS' || $^O eq 'os2') {
+if ($^O eq 'VMS' || $^O eq 'os2' || $^O eq 'amigaos') {
$wr->autoflush;
$wr->printf("ok %d\n",11);
print $rd->getline;