in reply to RE: RE: From one beginner to others . . .in thread From one beginner to others . . .
<code> map{$r=[split (regex here)];$c+=(lc($r->[9]) eq "mapi")}<FH>; <code>
I haven't tested this works but I hope you get my drift.
Brother Frankus.