Re: last question on the switch statement ....

2005-04-18 Thread John W. Krahn
David Gilden wrote: Dear fellow PERL coders..., Hello, What is the "&& do" part of the code doing, i.e. I am looking to understand the syntax, the example was found in perl beginners archive, from some else's post... && is the logical 'and' operator. If the expression on its left is evaluated as

Re: last question on the switch statement ....

2005-04-18 Thread Vladimir D Belousov
Sorry for my English :) '&&' is a boolean operator. It returns TRUE when both statemets are ture, and false on other cases. But if the first statement is false, next statement will not be executed. For example: $hash{key} doesn't exists - if(exists($hash{key}) && $hash{key} =~ /\d+/); Is $^W is tru