in reply to Re: Re: When does while set $_ ?
in thread When does while set $_ ?
Thanks. Unfortunately, using grep() is not an option -- the original match() could involve multiple m// or a SQL query, depending on the data interface selected ;-).
But I wonder how four grep()'s compare to four m//'s in a foreach loop... I guess the latter approach still wins, because the array needs to be traversed only once.
|
|---|