in reply to Re: Matching First Character of Strings Efficiently
in thread Matching First Character of Strings Efficiently
Tnx to all. :^)my $fc = substr($str_a,0,1); for my $str_b ( @list ) { next if ord($fc) == ord((split(//, $str_b))[0]); expensive_function ( $str_a, $str_b ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Matching First Character of Strings Efficiently
by Limbic~Region (Chancellor) on Mar 16, 2004 at 15:02 UTC | |
by kral (Monk) on Mar 16, 2004 at 16:59 UTC | |
by Limbic~Region (Chancellor) on Mar 16, 2004 at 17:18 UTC | |
by kral (Monk) on Mar 16, 2004 at 20:13 UTC |