"GetOptionsFromString" is not exported by the Getopt::Long module

Viewed 484

I am trying to use GetOptionsFromString function and facing the following error:

"GetOptionsFromString" is not exported by the Getopt::Long module

In the program I have the following lines added:

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 resolving this issue?

1 Answers
Related