in reply to Re: Uniqueness in Text Data File Help
in thread Uniqueness in Text Data File Help

oh...i think i get you....you don't even need perl for that (although you easily could)....On any decent machine (unix/linux or a windows machine with cygwin installed)
grep "Joe's Store" your_filename | wc
..or in perl:
while($line=<>) { chomp $line; $a++ if($line =~ /Joe's Store/); } print "Joe's Store occured $a times\n";

Replies are listed 'Best First'.
Re: Re: Re: Uniqueness in Text Data File Help
by Anonymous Monk on Apr 19, 2004 at 13:57 UTC
    Actually if I just replace the $1 with the value of $test, I get the results I'm looking for, thank you!