note
rchiav
Actually, it won't evaluate the regex if the first half of the "and" is false. For a test, try..
<code>
#!/usr/bin/perl -w
use strict;
if ( (0) and (print "test\n")) {
print "True\n";
}
</code>
"test" won't print. If you chage the 0 to a 1, it will. The reason being is that for an "and" to be true, both parts have to be true. If the first half is false, there's no need to evaluate the second half.<p>
Hope this helps<br>
Rich
108493
108493