my $dbh = DBI->connect( $connect_string, $user, $pass, ); die "Couldn't connect to DBI\n" unless $dbh; $dbh->{RaiseError} = 1;
for ( my $i = 0; $i < scalar(@mini) ; $i++ ) { delete $mini[$i]{'MajorDescription'}; delete $mini[$i]{'MajorKey'}; delete $mini[$i]{'hits'}; } ---- foreach my $i (0 .. $#mini) { delete $mini[$i]{$_} for qw(MajorDescription MajorKey hits); }
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
In reply to Re: Search engine code critique
by dragonchild
in thread Search engine code critique
by ruhk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |