I suppose you could use $_ in place of $word if you wanted.if (/$word/i) { print unless (++$matches{$word} > 1) }
Update: After seeing swiftone's post I realize that I forgot to adjust case. Thanks swiftone.
if (/$word/i) { print unless (++$matches{lc $word} > 1) }
In reply to RE: Re: Trying to make a search Part 2
by Adam
in thread Trying to make a search Part 2
by zdog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |