blib/lib/Location/Area/DoCoMo/iArea/Region.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 13 | 23.0 |
branch | 0 | 2 | 0.0 |
condition | n/a | ||
subroutine | 1 | 2 | 50.0 |
pod | 0 | 1 | 0.0 |
total | 4 | 18 | 22.2 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Location::Area::DoCoMo::iArea::Region; | ||||||
2 | |||||||
3 | 1 | 1 | 6 | use strict; | |||
1 | 13 | ||||||
1 | 581 | ||||||
4 | |||||||
5 | sub seek | ||||||
6 | { | ||||||
7 | 0 | 0 | 0 | shift; | |||
8 | 0 | seek DATA,0,0; | |||||
9 | 0 | my ($aid,$said) = @_; | |||||
10 | 0 | my ($region,$pref); | |||||
11 | 0 | while (my $line = ) | |||||
12 | { | ||||||
13 | 0 | my @scan = $line =~ /^$aid,$said,([^,]+),([^,]+),/; | |||||
14 | 0 | 0 | if (@scan) | ||||
15 | { | ||||||
16 | 0 | ($region,$pref) = @scan; | |||||
17 | 0 | last; | |||||
18 | } | ||||||
19 | } | ||||||
20 | 0 | return ($region,$pref); | |||||
21 | } | ||||||
22 | |||||||
23 | 1; | ||||||
24 | __DATA__ |