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 true then the expression on its right is evaluated, however if the
expression on its left is evaluated as false then the expression on the right
is not evaluated.
perldoc perlop
"do {};" is a code block that returns the value of the last expression
evaluated in the block.
perldoc -f do
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>