*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> perl5/File::Compare (3)              
Title
Content
Arch
Section
 

Contents


File::Compare(3)					      File::Compare(3)


NAME    [Toc]    [Back]

     File::Compare - Compare files or filehandles

SYNOPSIS    [Toc]    [Back]

	     use File::Compare;

	     if	(compare("file1","file2") == 0)	{
		 print "They're	equal\n";
	     }

DESCRIPTION    [Toc]    [Back]

     The File::Compare::compare	function compares the contents of two sources,
     each of which can be a file or a file handle.  It is exported from
     File::Compare by default.

     File::Compare::cmp	is a synonym for File::Compare::compare.  It is
     exported from File::Compare only by request.

RETURN    [Toc]    [Back]

     File::Compare::compare return 0 if	the files are equal, 1 if the files
     are unequal, or -1	if an error was	encountered.

AUTHOR    [Toc]    [Back]

     File::Compare was written by Nick Ing-Simmons.  Its original
     documentation was written by Chip Salzenberg.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
File::Copy IRIX Copy files or filehandles
cmp FreeBSD compare two files
cmp OpenBSD compare two files
cmp HP-UX compare two files
cmp IRIX compare two files
zcmp OpenBSD compare compressed files
zdiff OpenBSD compare compressed files
zdiff Linux compare compressed files
zcmp FreeBSD compare compressed files
gzdiff IRIX compare compressed files
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service