in reply to A grammar for Perl, or something close
The grammar thing is awfully complex. Have you looked at the ops pragma instead? It may be easier than Safe. I've not used it, though.