|Pathologically Eclectic Rubbish Lister|
Count similar characters in a row - only onceby $new_guy (Acolyte)
|on Jun 28, 2011 at 10:15 UTC||Need Help??|
$new_guy has asked for the
wisdom of the Perl Monks concerning the following question:
I have been using a script that you helped develop:http://perlmonks.org/index.pl?node_id=864169
The script has been brilliant. However, I am faced with a new task. The script has been counting all the rows that have all columns with exactly the same characters in my data. The data file is here:http://perlmonks.org/index.pl?abspart=1;displaytype=displaycode;node_id=864179;part=4
This was done in a random fashion using the file:http://perlmonks.orgindex.pl?abspart=1;displaytype=displaycode;node_id=864179;part=3
How do I modify the script to count the row only once once it has counted a previous row with the same integer/number in that appears infront of my row characters (that is the z's)?
The script I am using current is below. It takes the random file as: "random.txt" and the data file as "re-organized.txt"