Seeing as my current script only contains the regular shebang and the system() command, containing the grep command to be run in the shell, I did not think it would be very important to post my script. I had no clue where to start, but your comment did help.
I thank you either way.