home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / perl / os2perl / glob.t < prev    next >
Text File  |  1991-06-16  |  495b  |  23 lines

  1. #!./perl
  2.  
  3. # $Header: glob.t,v 4.0 91/03/20 01:52:49 lwall Locked $
  4.  
  5. print "1..4\n";
  6.  
  7. @ops = <op/*>;
  8. $list = join(' ',@ops);
  9.  
  10. chop($otherway = `perlglob op/*`);
  11.  
  12. print $list eq $otherway ? "ok 1\n" : "not ok 1\n$list\n$otherway\n";
  13.  
  14. print $/ eq "\n" ? "ok 2\n" : "not ok 2\n";
  15.  
  16. while (<jskdfjskdfj* op/* jskdjfjkosvk*>) {
  17.     $not = "not " unless $_ eq shift @ops;
  18.     $not = "not at all " if $/ eq "\0";
  19. }
  20. print "${not}ok 3\n";
  21.  
  22. print $/ eq "\n" ? "ok 4\n" : "not ok 4\n";
  23.