| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
# Copyright 2002-2026, Paul Johnson ([email protected]) |
| 4 |
|
| 5 |
# This software is free. It is licensed under the same terms as Perl itself. |
| 6 |
|
| 7 |
# The latest version of this software should be available from my homepage: |
| 8 |
# https://pjcj.net |
| 9 |
|
| 10 |
use strict; |
| 11 |
use warnings; |
| 12 |
|
| 13 |
my @x; |
| 14 |
|
| 15 |
my $y = 1; |
| 16 |
my $z = 0; |
| 17 |
|
| 18 |
for (0 .. 10) { |
| 19 |
$y && |
| 20 |
$x[1]++; |
| 21 |
|
| 22 |
$y && |
| 23 |
$x[0]++ && |
| 24 |
$x[1]++; |
| 25 |
|
| 26 |
$x[2]++ |
| 27 |
if $z; |
| 28 |
|
| 29 |
for (0 .. 2) { |
| 30 |
$x[3]++; |
| 31 |
} |
| 32 |
|
| 33 |
if ($y) { |
| 34 |
$x[4]++; |
| 35 |
} else { |
| 36 |
$y && $x[5]++; |
| 37 |
} |
| 38 |
|
| 39 |
my $p = $y & $z; |
| 40 |
|
| 41 |
$p &&= $y; |
| 42 |
$p &&= $z; |
| 43 |
my $q = 1; |
| 44 |
$q &&= $_; |
| 45 |
|
| 46 |
pas(); |
| 47 |
} |
| 48 |
|
| 49 |
sub pas { |
| 50 |
$y && $z |
| 51 |
} |
| 52 |
|
| 53 |
# print join(", ", @x), "\n"; |