NAME

List::Analyse::Sequence::Analyser::OL::Numbered - Find ordered lists that are numbered.

DESCRIPTION

Used as a plugin to List::Analyse::Sequence, this will determine whether your sequence is numbered in the old fashioned way, i.e. sequentially, starting with any number and going up.

SYNOPSIS

use List::Analyse::Sequence;

...

my $seq = List::Analyse::Sequence->new;
$seq->use_these_analysers( qw[List::Analyse::Sequence::Analyser::OL::Numbered] );

$seq->analyse( @stuff );
my ($result) = $seq->result;

# Returns undef if no sequences matched.
if( defined $result ) {
    my $analyser  = $result->[0];

    ...
}

...

List::Analyse::Sequence will return an object of this type when it is finished analysing if your list was an ordered list and each item began with a sequential number.

Whitespace may exist before each number: otherwise it is not considered numbered.

METHODS

You won't need to use any of these methods yourself: they are accessed by List::Analyse::Sequence.

new

Creates a new one. This is called by List::Analyse::Sequence and so you probably don't need to use it directly.

analyse

Analyses a string for sequentialism with the previous.

done

We don't do any post-processing in this module.