File Coverage

blib/lib/Location/Area/DoCoMo/iArea/Next.pm
Criterion Covered Total %
statement 3 14 21.4
branch 0 4 0.0
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 21 19.0


line stmt bran cond sub pod time code
1             package Location::Area::DoCoMo::iArea::Next;
2            
3 1     1   7 use strict;
  1         2  
  1         162  
4            
5             sub seek
6             {
7 0     0 0   shift;
8 0           seek DATA,0,0;
9 0           my ($aid,$said) = @_;
10 0           my @next;
11 0           while (my $line = )
12             {
13 0 0         if ($line =~ /^$aid\-$said,[^,]+,([-\d,]*)$/)
14             {
15 0 0         if ($1)
16             {
17 0           @next = split(/,/,$1);
18             }
19             else
20             {
21 0           @next = ();
22             }
23 0           last;
24             }
25             }
26 0           return \@next;
27             }
28            
29             1;
30             __DATA__