Using elsif instead of more expensive if.

This commit is contained in:
Roland Illig 2004-08-19 15:43:09 +00:00
parent 388442cf0c
commit c42b447115

View File

@ -345,19 +345,19 @@ if ($ARGV[0] eq 'list') {
open I, myin($ARGV[1]).'|';
list $ARGV[1];
exit 0;
} if ($ARGV[0] eq 'copyout') {
} elsif ($ARGV[0] eq 'copyout') {
open I, myin($ARGV[1])."|";
copyout ($ARGV[2], $ARGV[3]);
exit 0;
} if ($ARGV[0] eq 'rm') {
} elsif ($ARGV[0] eq 'rm') {
open I, myin($ARGV[1])."|";
rm ($ARGV[1], $ARGV[2]);
exit 0;
} if ($ARGV[0] eq 'rmdir') {
} elsif ($ARGV[0] eq 'rmdir') {
exit 0;
} if ($ARGV[0] eq 'mkdir') {
} elsif ($ARGV[0] eq 'mkdir') {
exit 0;
} if ($ARGV[0] eq 'copyin') {
} elsif ($ARGV[0] eq 'copyin') {
copyin ($ARGV[1], $ARGV[2], $ARGV[3]);
exit 0;
}