if ( q{abcdefgh} =~ /(?:$a|$b|$c)/ ) { # Do something }
I've tested it briefly and it seems to work ok.
Cheers,
JohnGG
In reply to Re: howto make a very long IF statment shorter
by johngg
in thread howto make a very long IF statment shorter
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |