Perl Command Line Option
Jump to navigation
Jump to search
A Perl Command Line Option is a Command Line Input to a Perl program.
- Context:
- It can be processed by a Perl Command Line Processor.
- See: Command-line Interface.
References
2013
my $inputFile = shift @ARGV ; $inputFile = "$mwTermsFileDefault" if (not defined $inputFile ) ; my $outputFile = shift @ARGV ; $outputFile = "$outFileDefault" if (not defined $outputFile ) ;
use Getopt::Long ; die "ERROR in parameter processing.\n" if not GetOptions ( 'inFile:s' => \$inputFile, 'outFile:s' => \$outputFile, ... 'help' => \$help, ) ;