![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
[General] Non-Specific Options Questionby arblargan (Acolyte) |
on Aug 02, 2017 at 06:56 UTC ( #1196515=perlquestion: print w/replies, xml ) | Need Help?? |
arblargan has asked for the wisdom of the Perl Monks concerning the following question: Monks, I have a question regarding options and their use in Perl. The nature of my question is more academic and not necessarily context specific. In fact, I'm not even sure that options is the proper term I'm looking for. I'm simultaneously learning Perl and creating my own modular program to decode a complex diagnostic file. This program, once completed will be used by many people across many machines. As such, there are going to be certain facets of the program that I'd like to be configurable based on user preference. An extremely generic description of the program is that it will take a raw data file and output the information to an Excel spreadsheet. Regarding the user configurable options, I'd like for the user to be able to choose whether or not they want the Excel file color coded, whether they want certain sheets in the Excel file, directories for output file storage, etc... Ideally, I'd like to have a user config file of sorts where each user can set their default values on how they'd like to program to handle these steps of processing. Are these examples of something that would be handled through the use of ARGV passed arguments/options? If so, could anyone help me wrap my head around these uses and how to implement them in code? I've read several articles and tutorials about options/arguments, but everything seems to be command line centric. I just can't seem to connect the dots. If there's any other resources that might help me understand these uses, I would greatly appreciate it. Thanks!
Back to
Seekers of Perl Wisdom
|
|