D
David Filmer
Suppose I want to check if $foo is between 1 and 10. What I would like
to do is something elegant like:
if (1 < $foo < 10) {blah blah...
But Perl doesn't like that. Am I forced to resort to
if (1 < $foo && $foo < 10) {blah blah...
or is there a more elegant way to write it?
to do is something elegant like:
if (1 < $foo < 10) {blah blah...
But Perl doesn't like that. Am I forced to resort to
if (1 < $foo && $foo < 10) {blah blah...
or is there a more elegant way to write it?