| 1 | package List::Analyse::Sequence::Analyser::OL::Numbered; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 7 | 0 | return bless {}, shift; | |||||||||
| 8 | } | ||||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub analyse { | ||||||||
|
Subroutine
analyse: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 11 | 0 | my $self = shift; | |||||||||
| 12 | 0 | my $datum = shift; | |||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | if( exists $self->{last_num} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | $self->{last_num}++; | |||||||||
| 16 | |||||||||||
| 17 | 0 | ▶ | return 1 if $datum =~ /^\s*$self->{last_num}/; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 0 | return; | |||||||||
| 19 | } | ||||||||||
| 20 | |||||||||||
| 21 | 0 | ▶ | ($self->{last_num}) = $datum =~ /^\s*(\d+)/ or return; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 0 | return 1; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 0 | ▶ | sub done {1} | ||||||||
|
Subroutine
done: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 26 | 1 | 1; | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||