Pass arguments from the command line
I want to pass arguments from the command line, so I had tried the following code, but it throws an error: use strict; use warnings; use Getopt::Long qw(GetOptions); use Getopt::Std; print "raw data:@ARGV\n"; my $site = getopts('bangalore', 'norwood', 'limerick'); if ($site) { print "success"; } else { die "error"; } print "final data:@ARGV \n";
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.