my $str_a = 'Foo'; my $fc = substr($str_a,0,1); expensive_function($str_a, $_) for grep {! /^$fc/o} @list;
In reply to Re: Matching First Character of Strings Efficiently
by delirium
in thread Matching First Character of Strings Efficiently
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |