home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / perl5 / File::Compare.z / File::Compare
Encoding:
Text File  |  1998-10-30  |  1.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. FFFFiiiilllleeee::::::::CCCCoooommmmppppaaaarrrreeee((((3333))))                                              FFFFiiiilllleeee::::::::CCCCoooommmmppppaaaarrrreeee((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      File::Compare - Compare files or filehandles
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.              use File::Compare;
  13.  
  14.              if (compare("file1","file2") == 0) {
  15.                  print "They're equal\n";
  16.              }
  17.  
  18.  
  19. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  20.      The File::Compare::compare function compares the contents of two sources,
  21.      each of which can be a file or a file handle.  It is exported from
  22.      File::Compare by default.
  23.  
  24.      File::Compare::cmp is a synonym for File::Compare::compare.  It is
  25.      exported from File::Compare only by request.
  26.  
  27. RRRREEEETTTTUUUURRRRNNNN
  28.      File::Compare::compare return 0 if the files are equal, 1 if the files
  29.      are unequal, or -1 if an error was encountered.
  30.  
  31. AAAAUUUUTTTTHHHHOOOORRRR
  32.      File::Compare was written by Nick Ing-Simmons.  Its original
  33.      documentation was written by Chip Salzenberg.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.