On 7/3/07, Joseph L. Casale <[EMAIL PROTECTED]> wrote:
Heh, I never tried to use "and"? I assumed it wasn't that simple!
snip
Well, it is a little more complicated than that. There are three and operators in Perl: bitwise (&), high precedence logical (&&), and low precedence logical (and). In general the low precedence version works fine for your needs (although you will see a lot of people coming from C, C++, Java, etc. using && and a lot of parenthesis). If a conditional statement is not returning the expect result, you may want to check the precedence of the operators you are using and add parenthesis as needed. There is a handy chart at http://perldoc.perl.org/perlop.html (or from the command line: perldoc perlop). snip
Problem with learning something from the beginning is I don't even know what that's called so searching the net is rather hard:)
snip Why search the internet? Go to http://perldoc.perl.org/. You should also look into buying Learning Perl (the Llama). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/