Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 56 lines (41 sloc) 0.686 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
#!/usr/local/bin/perl

# Copyright 2002-2003, Paul Johnson (pjcj@cpan.org)

# This software is free. It is licensed under the same terms as Perl itself.

# The latest version of this software should be available from my homepage:
# http://www.pjcj.net

use strict;
use warnings;

my @x;

my $y = 1;
my $z = 0;

for (0 .. 10)
{
  $y ||
    $x[1]++;

  $y ||
    $x[0]++ ||
    $x[1]++;

  $x[2]++
    unless $z;

  for (0 .. 2)
  {
      $x[3]++;
  }

  if ($z)
  {
    $x[4]++;
  }
  else
  {
    $x[5]++;
  }

  my $p = $y || $z;
  my $q = $z || $y;
  my $r = $_ || "qqq";
  my $s = $y | $z;

  $p ||= $y;
  $p ||= $z;
  $x[6] ||= $y;
  $x[7] ||= $z;
}

# print join(", ", @x), "\n";
Something went wrong with that request. Please try again.