Problem Solved!
Just replace '=' with ':' at line 5
Here is the code.
use Getopt::Long; my $abc; my $help; GetOptions ( "abc:s" => \$abc, "help" => \$help ); if ($help) { print "This is help message\n" ; exit ;} if ($abc) { print "You have choosen \"abc\" as $abc" };
You can get more information on Getopt::Long here
In reply to Re: Help required on Getopt::Long
by uday_sagar
in thread Help required on Getopt::Long
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |