c has asked for the wisdom of the Perl Monks concerning the following question:
if ($upload eq "run") { ©_tftp_run; exit(0); } elsif ($upload eq "start") { ©_tftp_start; exit(0); } elsif ($upload) { print "\nYour destination choice for Uploads does not appear to be v +alid.\n\n" ; exit(1); }
however, when i run the program with --upload and a value other than "run" or "start", i get an error dealing with the next for loop. i would have thought that the final elsif statement would test true for something like --upload dog causijg the error statement to print and the script to exit.
humbly -c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using 'value=s' = \$value
by perrin (Chancellor) on Aug 23, 2001 at 22:17 UTC | |
|
Re: using 'value=s' = \$value
by Cine (Friar) on Aug 23, 2001 at 21:41 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |