You could make a decision, as described in Re: How do I process many (conflicting) command line parameters? (and modify it a bit):
# untested my $action = shift; my %actions = ( options => \&get_options, config => \&read_config ); $actions{$action}->(); sub get_options { # get options } sub read_config { # read config }
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help
In reply to Re: [General] Non-Specific Options Question
by karlgoethebier
in thread [General] Non-Specific Options Question
by arblargan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |