tests/special_blocks
raw| 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 | BEGIN { |
| 16 | $x++ |
| 17 | } |
| 18 | |
| 19 | CHECK { |
| 20 | $x++ |
| 21 | } |
| 22 | |
| 23 | INIT { |
| 24 | $x++ |
| 25 | } |
| 26 | |
| 27 | END { |
| 28 | $x++ |
| 29 | } |
| 30 | |
| 31 | $x++; |