use strict;
-if ($ARGV[0] eq "config") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "new") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "old") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "pass") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "client") {
+if (grep { $_ eq $ARGV[0] } qw(CA config new old pass client)) {
exec "./Institute/inst", @ARGV;
}
#+END_SRC
use strict;
-if ($ARGV[0] eq "config") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "new") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "old") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "pass") {
- exec "./Institute/inst", @ARGV;
-}
-if ($ARGV[0] eq "client") {
+if (grep { $_ eq $ARGV[0] } qw(CA config new old pass client)) {
exec "./Institute/inst", @ARGV;
}