File::Compare - Online Linux Manual PageSection : 3pm
Updated : 2022-03-15
Source : perl v5.34.1
Note : Perl Programmers Reference Guide
NAMEFile::Compare − Compare files or filehandles
SYNOPSIS use File::Compare;
if (compare("file1","file2") == 0) {
print "They're equal\n";
}
DESCRIPTIONThe 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. File::Compare::compare_text does a line by line comparison of the two files. It stops as soon as a difference is detected. compare_text() accepts an optional third argument: This must be a CODE reference to a line comparison function, which returns 0 when both lines are considered equal. For example: compare_text($file1, $file2)
is basically equivalent to compare_text($file1, $file2, sub {$_[0] ne $_[1]} )
RETURNFile::Compare::compare and its sibling functions return 0 if the files are equal, 1 if the files are unequal, or −1 if an error was encountered.
AUTHORFile::Compare was written by Nick Ing-Simmons. Its original documentation was written by Chip Salzenberg. 0
Johanes Gumabo
Data Size : 4,743 byte
man-File::Compare.3pmBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 5 / 168,455
Visitor ID : :
Visitor IP : 52.15.70.0 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|249|File::Compare.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\|
) (htmlprn|149|File::Compare.3pm|36/37|.el══─{─══. ds -- — |.el══─{─══. ds -- \|\(em\|
) (parse_manual_page_|249|File::Compare.3pm|43|br══─}─══|'br══─}─══
) (htmlprn|149|File::Compare.3pm|43|'br══─}─══ |'br══─}─══
)