in reply to Re^3: Dynamic option
in thread Dynamic option

You'll need a different parser.

Replies are listed 'Best First'.
Re^5: Dynamic option
by Anonymous Monk on Mar 16, 2011 at 12:14 UTC

    OP should look into Getopt::Euclid. It will provide to specify optional "sub options", in terms of plain old strings. Based on presence of those strings, run the code as you would desire. I would guess one would access a sub option, for example, as $ARGV{-input}->{-nd}.

    I personally do not want to deal with G::Euclid due to much stuffing of POD.

Re^5: Dynamic option
by Anonymous Monk on Mar 16, 2011 at 06:25 UTC

    Can you suggest any other idea on how can I achieve it?any idea which parser can do that?perl cannot do that?

      There probably isn't an existing one. Your needs are unique. (Which should lead you to question them!)