in reply to Search engine code critique
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Search engine code critique
by chromatic (Archbishop) on Sep 18, 2003 at 20:01 UTC | |
by dragonchild (Archbishop) on Sep 18, 2003 at 20:03 UTC | |
by tachyon (Chancellor) on Sep 19, 2003 at 02:04 UTC |