Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi - am continuing the previous thread here as it became long ,hope someone can provide an alternative idea or a solution?
Is there a way to add options to option values?meaning ,in the below example the option is "input" and it's values are data,modem,apps but for these values I want to add options (-nd -na -nc)?Can someone pls advise how can I achieve that?To explain again ,the ones in "[]" are optional sub-options(they may or may not present always) to the values of "input"option, data,modem,apps are values to option "input",they can also change.
EXAMPLE:- findfiles -input [-nd -na ] data [-nc -nd] modem apps -des "finding fi +les" -r 1000 Basically ,pseudco code of what I want to achieve is below.Really appr +eciate if someone can give me the perlversion of the code. for each "input option value" { call function A if not exits nd call function B if not exits na call function C if not exists nc }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (Continuation ....)Dynamic option
by Anonymous Monk on Mar 16, 2011 at 07:33 UTC | |
|
Re: (Continuation ....)Dynamic option
by cdarke (Prior) on Mar 16, 2011 at 12:11 UTC | |
by Anonymous Monk on Mar 16, 2011 at 12:31 UTC | |
|
Re: (Continuation ....)Dynamic option
by Anonymous Monk on Mar 16, 2011 at 17:05 UTC |