... that can turn these filters ('192\.168\.200\.|10\.10\.200',',SEVERE,') into this form ...
grep {/,SEVERE,/} (grep {/192\.168\.200\.|10\.10\.200/} (<$FILE>));
Have you tried it?
c:\@Work\Perl\monks>perl -wMstrict -MData::Dump -le "my @stuff = qw( A C B:Mild C:Severe B A:Severe Etc B:Severe And So On ); ;; my @out = grep /Severe/, grep /A|B/, @stuff; dd \@out; " ["A:Severe", "B:Severe"]
Give a man a fish: <%-{-{-{-<
In reply to Re: Auto-Expansion of Grep Function
by AnomalousMonk
in thread Auto-Expansion of Grep Function
by mwb613
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |