in reply to multiple checks on a conditional
"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.#!/usr/bin/perl -w use strict; if ( (0) and (print "test\n")) { print "True\n"; }
Hope this helps
Rich
|
|---|