m_jaser has asked for the wisdom of the Perl Monks concerning the following question:
Hi Everyone,
I'm running into a scenario where i need to use GetOpt twice in the script, the first time is easy as it is parsing the @ARGV at the Script Input, however, the second time, i need to give 'STDIN'/<> for user to enter input which contains new directory (where the script will continue to execute) and also give the chance to change options provided in the beginning with @ARGV.
I'd be so grateful if you can help me resolve this scenario?
Here is an example at Script input: perl Analyzer.pl -t 2 -c "4 1 2 3 4" . . While the Script is still active, i have this example message: To process another log file, enter the path to the log file, or enter +'x' to exit: /cygdrive/h/eFUT_Testing/Test_Log/Log2 -t 1 -c "2 1 2"
Thank You
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to process Getopt::Long from STDIN
by kcott (Archbishop) on Mar 12, 2017 at 04:49 UTC | |
by m_jaser (Novice) on Mar 12, 2017 at 23:05 UTC | |
|
Re: How to process Getopt::Long from STDIN
by stevieb (Canon) on Mar 12, 2017 at 03:02 UTC | |
by m_jaser (Novice) on Mar 12, 2017 at 03:20 UTC |