in reply to special directory entries

Hmm. You posted the same question yesterday. Did you try any of the answers that were suggested there?

I tend to think not, because you would have found that the grep function is built in to Perl on all platforms. It doesn't depend on the Unix program of the same name. (There are Win32 ports of the grep program, BTW.)