home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / language / perl / Test / T / Op / Mkdir < prev    next >
Encoding:
Text File  |  1991-02-09  |  467 b   |  16 lines

  1. #!./perl
  2.  
  3. # $Header: op.mkdir,v 3.0.1.4 91/01/11 18:30:00 lwall Locked $
  4.  
  5. print "1..7\n";
  6.  
  7. unlink 'blurfl';
  8.  
  9. print (mkdir('blurfl') ? "ok 1\n" : "not ok 1\n");
  10. print (mkdir('blurfl') ? "not ok 2\n" : "ok 2\n");
  11. print ($! =~ /exist/ ? "ok 3\n" : "not ok 3\n");
  12. print (-d 'blurfl' ? "ok 4\n" : "not ok 4\n");
  13. print (rmdir('blurfl') ? "ok 5\n" : "not ok 5\n");
  14. print (rmdir('blurfl') ? "not ok 6\n" : "ok 6\n");
  15. print ($! =~ /not found/ ? "ok 7\n" : "not ok 7 ($!)\n");
  16.