in reply to Text comparisons
Also, use the Poor Man's Debugger, and stick print statements where you suspect your data:foreach $sourceLine (@SourceData) { chomp $sourceLine; chomp $functionName; if ($functionName =~ /$sourceLine/) {$counter++;} }
And of course, use warnings; and use strict; hope that helps...foreach $sourceLine (@SourceData) { print "$sourcfeLine\n"; print "$functionName\n"; print "\n"; if ($functionName =~ /$sourceLine/) {$counter++;} }
|
|---|