zsh: operation not permitted when running Perl script
I have an old Perl script that I've been running for many years. I hadn't used it in a while, so I don't know what broke it. I'm running Big Sur now.
Today when I tried to run the script from a Terminal window as "./script.pl" I got the "operation not permitted" error. I ran it as "perl script.pl" and it worked. I have a couple of Perl scripts, and none of them work. I tried giving full disk access to Terminal, but that didn't help. And yes, the "execute" bit is set, and I haven't touched the script since I last used it successfully. I'm making SIP unhappy somehow I reckon.
I tried contacting Apple Support and got, "Third party software ain't our problem." Pointing out that the error is coming from "zsh" didn't help.
My current version of Perl is /usr/bin/perl v5.28.2
I don't want to disable SIP, but any other suggestions would be appreciated.
Parallels, macOS 10.14