'==' is a number comparision operator, and its wrong to compare content with it, you must use 'eq' in this case.use File::Slurp; my $f1 = read_file('Input1'); my $f2 = read_file('Input2'); if ($f1 eq $f2) { print"Both File are Equal"; }else{ print"Not-Equal"; }
In reply to Re: How to compare array with module
by vkon
in thread How to compare array with module
by qsl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |