Not so strange. Your specification says that if your program has only one parameter then that parameter should be assigned to <dbfile>.
You seem to have two choices: precede your filename with a flag (like --file) or to sanity check the contents of the string <dbfile>.
In reply to Re: Getopt::Euclid, strange behavior & how to fix?
by Anonymous Monk
in thread Getopt::Euclid, strange behavior & how to fix?
by pht
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |