Mark davenport wrote:
> Hello,
Hello,
> I am writing a program that will do the following:
>
> Create an email when you see the same name 3 times.
>
>
> How would i go about doing this:
>
> I am capturing an error message and when I see a name 3 times I need to
> send an email.(Using Blat)
my %count;
# ...
$count{ $name }++;
send_email() if $count{ $name } >= 3;
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>