in reply to Re: Fast sublist generation
in thread Fast sublist generation
And yes, the sort wouldn´t be necessary at the moment,foreach my $morph (sort keys %$self) { if($key =~ /^$morph(.*)$/) { print "Found (prefix $morph): $1\n"; return ($self->find('DE',$1), "P:$morph"); } if($key =~ /^(.*)$morph$/) { print "Found (suffix $morph): $1\n"; return ($self->find('DE',$1), "S:$morph"); } }
Ciao
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Fast sublist generation
by kschwab (Vicar) on Jul 28, 2001 at 19:15 UTC |