#!/usr/bin/perl
# Copyright 2002-2015, Paul Johnson (paul@pjcj.net)
# 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;
sub xx {
$x[shift]++;
}
for (0 .. 10) {
time &&
$x[1]++;
$x[2]++
if time;
for (0 .. 2) {
$x[3]++;
}
if (time) {
xx(4);
} else {
$x[5]++;
}
}