if(index($key, $combine) != -1) { print "Found (prefix $combine): $1\n"; }
It should be more efficient than compiling and executing a regexp. For the suffix code you could combine index and length.
In reply to Re: Fast sublist generation
by larsen
in thread Fast sublist generation
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |