mak_tup has asked for the wisdom of the Perl Monks concerning the following question:


Hello,
Can we use switch statement in perl with getopts to
operate user options in more effective manner?
Here is one example in shell:
while getopts "RWI" option do case "$option" in i) Read_only=",R";; *) usage;; esac done

can we use getopts along with switch statement in similar way?

Replies are listed 'Best First'.
Re: Using perl switch with getopts.
by Anonymous Monk on Dec 05, 2009 at 07:16 UTC