blib/lib/Filter/CommaEquals.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 Filter::CommaEquals; | ||||||
2 | # ABSTRACT: Adds support for ,= to any package or script | ||||||
3 | |||||||
4 | 1 | 1 | 73888 | use strict; | |||
1 | 2 | ||||||
1 | 30 | ||||||
5 | 1 | 1 | 4 | use warnings; | |||
1 | 1 | ||||||
1 | 23 | ||||||
6 | |||||||
7 | 1 | 1 | 46087 | use Filter::Simple; | |||
1 | 73677 | ||||||
1 | 9 | ||||||
8 | |||||||
9 | our $VERSION = '1.01'; # VERSION | ||||||
10 | |||||||
11 | FILTER_ONLY | ||||||
12 | code => sub { | ||||||
13 | s/(\@[^',=']+)\s*,=\s*([^;]+);/push $1, $2;/msg | ||||||
14 | }; | ||||||
15 | |||||||
16 | 1; | ||||||
17 | |||||||
18 | __END__ |