in reply to Re: Getopt::Long Validation
in thread Getopt::Long Validation
On the unless statement should that be xor. Because or is validated left to right but if the left expression is true it stops. So if both were true it would still process?
So this code could accept:
I am testing the code now but just questioning if my understanding of the logic is correct. I like to process it in my mind before on the screen.foo.pl -f ip.txt -i 127.0.0.1
Update just ran it and it needs to xor to limit it to one of the two input methods.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
3Re: Getopt::Long Validation
by jeffa (Bishop) on Oct 21, 2003 at 15:18 UTC | |
by Ninthwave (Chaplain) on Oct 21, 2003 at 20:58 UTC |