in reply to reinstall Strawberry perl loses getopts.pl

per perl5160delta,

Several old perl4-style libraries which have been deprecated with 5.14 are now removed:

abbrev.pl assert.pl bigfloat.pl bigint.pl bigrat.pl cacheout.pl complete.pl ctime.pl dotsh.pl exceptions.pl fastcwd.pl flush.pl getcwd.pl getopt.pl getopts.pl hostname.pl importenv.pl lib/find{,depth}.pl look.pl newgetopt.pl open2.pl open3.pl pwd.pl shellwords.pl stat.pl tainted.pl termcap.pl timelocal.pl

They can be found on CPAN as Perl4::CoreLibs.

And, per Perl4::CoreLibs, you should be using Getopt::Std in lieu of getopts.pl

update: I'm not sure why it was in your 5.22, because I cannot find it in any of my strawberries after 5.14. I am assuming you (or someone else) installed it alone (ie, copied it from an older perl 5.14 or earlier) or by installing Perl4::CoreLibs.

Replies are listed 'Best First'.
Re^2: reinstall Strawberry perl loses getopts.pl
by stevena (Novice) on Aug 23, 2018 at 01:52 UTC

    Thank you both. Yes, it's an old script I'm trying to run.

    As suggested, getting and installing Perl4::CoreLibs worked. (I must have done that with 5.2.2, lost to memory.)