I tried putting an actual string in there to match and the warning was still popping up. I should note that the script functions as intended. And just to reiterate what my understanding of the perl ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results