Perl script to find process and exclude strings from the output

Hi team,

I'm a newbie of Perl Script and looking to create a simple perl script that will run in the Linux system:

1) to find process, such as ps -ef | grep process name
2) to exclude strings from the output if it found, for instance if i see abc from usr process, then will exclude it from the output so then the monitoring will only monitor the process I need.

Can someone please advise on how to create a script like this?

Thanks!
Hoffman2503

Sounds like homework which - if true - would collide with forum rule #6).

If this is NOT homework, please give some evidence/background/motivation.

In either case, post your attempts/ideas/thoughts.