Thank you for the reply
There is really no way for me to post my entire script as it is too long and on my unix box and it cannot be connected to the internet...
I will post some of the script here that I've been working on
my $count = 0; $array_length = grep m/^.*\n/, @storage; #Storage array contains my fi +le.. Use grep to get the number of sentences for (my $i = 0; $i <= $array_length; $i++) { my $x = 1; if ($storage[$i] eq $storage[$x]) { $count++; } $x++; }
That will return the number of matches of the first 12 sentences in the file... until it hits a line that is not like the first 12...
I do not know how to make it gather a count of all of the lines that are the same and return a count for each of them
In reply to Re^2: Counting the number of times several strings appear
by cspctec
in thread Counting the number of times several strings appear
by cspctec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |