AI-Gene-Sequence
view release on metacpan or search on metacpan
demo/Regexgene.pm view on Meta::CPAN
if ($gene =~ /mm|am|aa|^a|^m|a$/) {
return undef;
}
else {
return 1;
}
}
=head2
Having created a way to create, modify and verify our genetically
encoded regular expressions, we could do with some way to actually
use them. This method retuns a non compiled regular expression and
calls itself recursively when it finds nested genes.
=cut
sub regex {
my $self = shift;
my $rt;
warn "$0: empty gene turned into empty regex" unless scalar @{$self->[1]};
( run in 1.004 second using v1.01-cache-2.11-cpan-5467b0d2c73 )