Question: Need help with Perl, using perl 5 Exercise A7 The following statements set the values: $x = 3; $y = 0; $z = -4; Then,
Need help with Perl, using perl 5
Exercise A7
The following statements set the values:
$x = 3;
$y = 0;
$z = -4;
Then, which of the following expressions evaluate to true, and which evaluate to false?
!( $x < $y ) = True
!( $x >= $y ) False
!( (4 + 5 * $y) >= $z -2 ) && ( $z - 2 )
!($x) && !($y) || !($z)
Exercise A8
Code a single statement, which uses the && operator, and produces the same results as this code:
if ( $x < 10 )
{
$x++;
}
Exercise A9
Code a single statement, which uses the || operator, and produces the same results as this code:
unless ( $x < 10 )
{
$x++;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
