| blib/lib/App/perlfind/Plugin/VersionSpecific.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| statement | 9 | 9 | 100.0 |
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 3 | 100.0 |
| pod | n/a | ||
| total | 12 | 12 | 100.0 |
| line | stmt | bran | cond | sub | pod | time | code |
|---|---|---|---|---|---|---|---|
| 1 | package App::perlfind::Plugin::VersionSpecific; | ||||||
| 2 | 10 | 10 | 3859283 | use strict; | |||
| 10 | 26 | ||||||
| 10 | 394 | ||||||
| 3 | 10 | 10 | 52 | use warnings; | |||
| 10 | 18 | ||||||
| 10 | 324 | ||||||
| 4 | 10 | 10 | 463 | use App::perlfind; | |||
| 10 | 15 | ||||||
| 10 | 279 | ||||||
| 5 | our $VERSION = '2.07'; | ||||||
| 6 | |||||||
| 7 | App::perlfind->add_trigger( | ||||||
| 8 | 'matches.add' => sub { | ||||||
| 9 | my ($class, $word, $matches) = @_; | ||||||
| 10 | if ($$word =~ /^__(PACKAGE|LINE|FILE)__$/ && $] =~ /^5\.0(08|10|12|14)/) { | ||||||
| 11 | push @$matches, qw(perldata); | ||||||
| 12 | } | ||||||
| 13 | } | ||||||
| 14 | ); | ||||||
| 15 | 1; | ||||||
| 16 | __END__ |