Abhisek has asked for the wisdom of the Perl Monks concerning the following question:
/usr/bin/perl -w for (my $x1 = 0; $x1 <= $#RAM1; $x1++) { for (my $y1 = 0; $y1 <= $#{$RAM1[$x1]}; $y1++) { if(($RAM[$x1][$y1]) eq ($RAM1[$x1][$y1])) { if($x1==0){ } #print "DO NOTHING\n"; } else{ push(@shyam,$y1); what would get stored in @shyam in this code. Does $y1 tell you about +the column that does not match in this particular code. print "Mismatches \$y1=$y1 and $RAM[$x1][$y1] and $RAM1[$x1][$ +y1]\n"; my $lenfirst=length($AoA[$x1][$y1]); $lenfinal=35-$lenfirst; my $spacelen=" " x "$lenfinal"; push(@inde,{"$y1" => "$RAM[$x1][$y1]"."$spacelen"."\|$RAM1[$x1 +][$y1]"}); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding Mismatches
by graff (Chancellor) on Feb 12, 2008 at 08:24 UTC | |
|
Re: Finding Mismatches
by hipowls (Curate) on Feb 12, 2008 at 08:29 UTC |