I have some code that's wrapped with a test:
I want to improve that test to be case-Insensitive and also to include the numeric '0'.if( $ARGV[1] eq "ALL" )
Like this
but it appears that's not a valid implementation (not sure what it does!)if ( $ARGV[1] eq (/^ALL|0)$/i) )
Thanks for your help!
In reply to Testing a command line argument by mike65535
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |