How do I fix Getopt::Long event not found error?
I am using Getpt::Long to take the arguments from the command line and assign them to their respective variables. But, I am getting errors when I am printing it. The code and the error is as follows: #!usr/bin/perl use strict; use warnings; use Getopt::Long; GetOptions( "mount_path=s" => \my $old_path, "var=s" => \my $var, "log_path=s" => \my $log_path, ) or die "Error in input variables\n"; print <<"END_INPUTS"; These are your inputs: old_path= $old_path var = $var log_path=$log_path Press enter twice if all looks GOOD ********************************************************* END_INPUTS The c
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.