blib/lib/Quine.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 7 | 7 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Quine; | ||||||
2 | |||||||
3 | $VERSION = '1.01'; | ||||||
4 | |||||||
5 | sub import { | ||||||
6 | 1 | 1 | 11 | my $file = (caller)[1]; | |||
7 | 1 | 7 | local ($/, *FILE); | ||||
8 | 1 | 35 | open FILE, $file; | ||||
9 | 1 | 44 | print STDOUT |
||||
10 | 1 | 13 | close FILE; | ||||
11 | 1 | 1391 | exit; | ||||
12 | } | ||||||
13 | |||||||
14 | |||||||
15 | 1; | ||||||
16 | |||||||
17 | __END__ |