List::Analyse::Sequence::Analyser::OL::Numbered - Find ordered lists that are numbered.
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.
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.
You won't need to use any of these methods yourself: they are accessed by List::Analyse::Sequence.
Creates a new one. This is called by List::Analyse::Sequence and so you probably don't need to use it directly.
Analyses a string for sequentialism with the previous.
We don't do any post-processing in this module.
To install List::Analyse::Sequence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm List::Analyse::Sequence
CPAN shell
perl -MCPAN -e shell install List::Analyse::Sequence
For more information on module installation, please visit the detailed CPAN module installation guide.