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 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/perl
# Copyright 2002-2026, 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:
# https://pjcj.net
# __COVER__ changes s/56.3/56.2/
use strict;
use warnings;
use lib "tests";
use Module1;
my @x;
sub xx {
$x[shift]++;
Module1::zz(0);
}
for (0 .. 10) {
if (time) {
xx(0);
} else {
$x[1]++;
}
}
package Module1;
my $y = 7;
$y++;
sub _aa {
$y++;
die;
die;
}
sub xx {
$y++;
die;
}
sub yy {
$y++;
}
sub zz {
my $x = shift;
$x++;
}
1
__END__
=head2 yy
yy
=cut
|