Perl question about

Hello everybody, I am new at the forum and a total newbie when it comes to Unix.

I am trying to see how I can add the ability to kill a user's processes?

I want to add this to my Shel Script Add the code/process into a subroutine.

Also, I would like to use an array to store the list of processes that need to be reviewed and killed.

Lastly, how can I kill the process using the array?

Any help would be extremely benefitial.

Please and thank you!

Kinelisch.