Options are not necessary for the program to work, hence the name 'option'
Since you require the input file --in option, you need a check to see if the user specified it:
pod2usage(-verbose => 1) unless defined $infile;
Another possibility is to provide a default value for $infile in your code.
In reply to Re: Problem with Getopt::Long and Pod::Usage
by toolic
in thread Problem with Getopt::Long and Pod::Usage
by mocnii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |