Help for this page
if ($command eq 'add' || $command eq 'a') { if (GetOptions(\%hash, 'name=s', 'value=i')) { ... } elsif ($command eq 'edit' || $command eq 'e') { ... }
# not tested ... GetOptions( ... ); # your code here }