Re: count issue

2002-06-01 Thread Janek Schleicher
Lance Prais wrote at Sat, 01 Jun 2002 01:17:55 +0200: > I would like to read the following to see if on line is repeating more then once. > > I would start this? > > I was trying something similar : > > my $line=$_; > my @results = $line =~ m/(sleeping for 10)/gi; > print 'Found ', scalar (@re

count issue

2002-05-31 Thread Lance Prais
I would like to read the following to see if on line is repeating more then once. I would start this? I was trying something similar : my $line=$_; my @results = $line =~ m/(sleeping for 10)/gi; print 'Found ', scalar (@results), " occurences\n"; Psodo code: If occurrences > 2 { Do something

count issue

2002-05-31 Thread Lance Prais
I would like to read the following to see if on line is repeating more then once. I would start this? I was trying something similar : my $line=$_; my @results = $line =~ m/(sleeping for 10)/gi; print 'Found ', scalar (@results), " occurences\n"; Psodo code: If occurrences > 2 { Do somethin