in reply to Matching First Character of Strings Efficiently
my $str_a = 'Foo'; my $fc = substr($str_a,0,1); expensive_function($str_a, $_) for grep {! /^$fc/o} @list;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Matching First Character of Strings Efficiently
by Limbic~Region (Chancellor) on Mar 15, 2004 at 20:01 UTC |