hasimir44 has asked for the wisdom of the Perl Monks concerning the following question:
Does perl work like shell scripting when using && and || or is there a different/better way?
ex:
if (($val > 5) && ($val < 10)) { ... }
I'm going through "Learning Perl" right now at a cafe and I'm stubbornly concerned with this.. I can't find an example in the book or on google.. weird. Anyway, thanks..
if (($val > 5) && ($val < 10)) { ... }
I'm going through "Learning Perl" right now at a cafe and I'm stubbornly concerned with this.. I can't find an example in the book or on google.. weird. Anyway, thanks..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: AND OR
by Tanktalus (Canon) on May 14, 2006 at 04:59 UTC | |
by hasimir44 (Sexton) on May 14, 2006 at 05:09 UTC | |
Re: AND OR
by Zaxo (Archbishop) on May 14, 2006 at 06:14 UTC | |
Re: AND OR
by graff (Chancellor) on May 14, 2006 at 06:22 UTC | |
by davidrw (Prior) on May 14, 2006 at 14:19 UTC | |
by tye (Sage) on May 14, 2006 at 16:29 UTC | |
Re: AND OR
by ioannis (Abbot) on May 14, 2006 at 05:18 UTC |
Back to
Seekers of Perl Wisdom