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
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
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