on-internet
← Community

Pass arguments from the command line

Stack Overflow ·

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";

Comments

Sign in or sign up to comment and upvote.

No comments yet.