I'd do something like:
while (my $row = $dbh -> fetchrow_arrayref) { if ($row -> [$last_name_col] =~ /^[L-Z]/) { push @L_Z => $row; while (my $row = $dbh -> fetch_arrayref) { push @L_Z => $row; } last; } push @A_K => $row; }
In reply to Re: Regex or Index
by Abigail-II
in thread Regex or Index
by perleager
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |