FMc update
I put generosity on this question because I am puzzled by the same problem. To rephrase the question, how do you implement application-level parameters (those that apply to the entire program, script.pl ), as opposed to those that apply to individual commands ( search in this example).
Original question
How can I use App :: Cmd to create such an interface
script.pl --config <file> search --options args
?
I can do:
./script.pl search
What I'm trying to achieve is to get an option for a configuration file, for example:
./script.pl
I looked at App :: Cmd :: Tutorial on cpan, but so far I have not been able to get it to work.
command-line perl perl-module
user419056
source share