As others have pointed out, grep in Perl and grep in various flavors of Unix are not the same. Further, there can be interesting variations in the kinds of patterns that different versions of (Unix)
grep can handle (grep, egrep, fgrep, etc).
Certain versions of Red Hat had a
grep that accepted the -P flag, which then would allow the pattern to be a Perl style regular expression. I personally found it useful to be able to say things like:
grep -P "(199|200)\d\w+" my.mail.log