If you want it really fast get rid of the braces as well:
my @arr1 = grep /reg exp/, split /\|/, $string;
In reply to Re^2: Performance optimization question
by jwkrahn
in thread Performance optimization question
by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |