did you confirm that the "$delay" variable actually got the value "30"?scriptname --dir foo --year 2007 --delay 30
I'm guessing it might not have, because there might be something else happening to @ARGV before you make the call to GetOptions() -- like maybe something pops off the last arg?
In reply to Re: Getopt::Long question
by graff
in thread Getopt::Long question
by Cody Pendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |