perl_mystery has asked for the wisdom of the Perl Monks concerning the following question:
Hi folks, I am using "getopt" to get the options entered on command-line.I am trying to find how to check for what command-line option was entered?I want to wrap some part of code based on the options entered.Can someone pls suggest how to do that?
my %options=(); use Getopt::Std; getopt("bg",\%options);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to check for the command line option entered?
by Anonymous Monk on Dec 05, 2010 at 23:59 UTC | |
|
Re: How to check for the command line option entered?
by eff_i_g (Curate) on Dec 06, 2010 at 15:41 UTC | |
by Anonymous Monk on Dec 07, 2010 at 08:48 UTC | |
by eff_i_g (Curate) on Dec 07, 2010 at 15:02 UTC |