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.
In reply to Re: Re: Getopt::Long Validation
by Ninthwave
in thread Getopt::Long Validation
by Ninthwave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |