in reply to Getopt::Euclid, strange behavior & how to fix?

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>.

  • Comment on Re: Getopt::Euclid, strange behavior & how to fix?