Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks!
is there a quick way to write the conditionals:
Thank you!
is there a quick way to write the conditionals:
instead of typing:If $string is not X and $string is not Y
? Also, a quick way to say:if($string ne 'Y' && $string ne 'Y')
instead of:If $string is A or $string is B
?if($string eq 'A' or $string eq 'B')
Thank you!
2009-06-28 Retitled by GrandFather, as per Monastery guidelines
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: conditional syntax options
by citromatik (Curate) on Jun 28, 2009 at 14:30 UTC | |
Re: conditional syntax options
by ELISHEVA (Prior) on Jun 28, 2009 at 14:25 UTC | |
by kyle (Abbot) on Jun 28, 2009 at 15:42 UTC | |
Re: conditional syntax options
by mzedeler (Pilgrim) on Jun 28, 2009 at 16:12 UTC | |
by Albannach (Monsignor) on Jun 28, 2009 at 17:21 UTC |
Back to
Seekers of Perl Wisdom