Perl on Big Sur
The version of Perl on Big Sur does not support statements like "require". I get the error message
Can't locate sample2.pl in @INC (@INC contains: /Library/Perl/5.30/darwin-thread-multi-2level /Library/Perl/5.30 /Network/Library/Perl/5.30/darwin-thread-multi-2level /Network/Library/Perl/5.30 /Library/Perl/Updates/5.30.2 /System/Library/Perl/5.30/darwin-thread-multi-2level /System/Library/Perl/5.30 /System/Library/Perl/Extras/5.30/darwin-thread-multi-2level /System/Library/Perl/Extras/5.30) at gws_mcm_mc.pl line 20
where sample2.pl is a another script containing functions. What is the problem and how do I fix it?