blib/lib/Filter/CommaEquals.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 11 | 11 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 4 | 4 | 100.0 |
pod | n/a | ||
total | 15 | 15 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Filter::CommaEquals; | ||||||
2 | # ABSTRACT: Adds support for ,= to any package or script | ||||||
3 | |||||||
4 | 1 | 1 | 188312 | use 5.008; | |||
1 | 7 | ||||||
5 | 1 | 1 | 4 | use strict; | |||
1 | 2 | ||||||
1 | 16 | ||||||
6 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 29 | ||||||
7 | |||||||
8 | 1 | 1 | 437 | use Filter::Simple; | |||
1 | 17755 | ||||||
1 | 5 | ||||||
9 | |||||||
10 | our $VERSION = '1.02'; # VERSION | ||||||
11 | |||||||
12 | FILTER_ONLY | ||||||
13 | code => sub { | ||||||
14 | s/(\@[^',=']+)\s*,=\s*([^;]+);/push $1, $2;/msg | ||||||
15 | }; | ||||||
16 | |||||||
17 | 1; | ||||||
18 | |||||||
19 | __END__ |