"GetOptionsFromString" is not exported by Getopt :: Long

I try to use the GetOptionsFromString function and encounter the following error:

"GetOptionsFromString" is not exported by Getopt :: Long

In the program, I have the following lines:

use Getopt::Long qw(GetOptionsFromString); 
use Getopt::Long;

I tried perl -MGetopt::Long -e 'print $Getopt::Long::VERSION, "\n"'and it prints 2.35.

Can someone help me in solving this problem?

+4
source share
1 answer

This was added in version 2.36. (The current version is 2.48.)

You will need to upgrade Getopt :: Long from CPAN.

+5
source

All Articles