in reply to Re^2: storing grep output to variable
in thread storing grep output to variable

Yes, grep is a Perl function, but you are doing this:

`grep ...`
and the backtick operators invoke a shell to run grep, which is also a Unix system utility.