List::Analyse::Sequence::Analyser::OL::RomanNumerals - Find Roman numeral sequences.
Used as a plugin to List::Analyse::Sequence, this will determine whether your sequence contains any Roman numerals.
use List::Analyse::Sequence; ... my $seq = List::Analyse::Sequence->new; $seq->use_these_analysers( 'List::Analyse::Sequence::Analyser::OL::RomanNumerals' ); $seq->analyse( @stuff ); my ($result) = $seq->result; # Returns undef if no sequences matched. if( defined $result ) { my $roman_analyser = $result->[0]; ... } ...
List::Analyse::Sequence will return an object of this type when it is finished analysing if your list had a Roman numeral sequence in it.
If a consistent prefix was found, this will be stored and you can get at it with the prefix method on that object.
prefix
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.
When finished, the shortest prefix found was taken to be the prefix. In the case where multiple prefixes were found (i.e. multiple sequences) you will therefore only be told of the first.
The consistent prefix that was found in front of your numeral sequence.
To install List::Analyse::Sequence::Analyser::OL::RomanNumerals, copy and paste the appropriate command in to your terminal.
cpanm
cpanm List::Analyse::Sequence::Analyser::OL::RomanNumerals
CPAN shell
perl -MCPAN -e shell install List::Analyse::Sequence::Analyser::OL::RomanNumerals
For more information on module installation, please visit the detailed CPAN module installation guide.