This is because -help is treated as string for the option "abc". even though '=' is not used the next string is tied for "abc" option.
Also, when i executed this code, i got the following error:
Undefined subroutine &main::Getoptions called.
Always include use strict and use warnings in your code. And the subroutine should be GetOptionsIn reply to Re: Help required on Getopt::Long
by zeni
in thread Help required on Getopt::Long
by ghosh123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |