1
# -*- tab-width: 4 -*- ###############################################
3
# $Id: Index.pm,v 1.9 2001/08/15 15:50:27 mbox Exp $
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21
$CVSID = '$Id: Index.pm,v 1.9 2001/08/15 15:50:27 mbox Exp $ ';
27
my ($self, $dbname, @args) = @_;
30
if ($dbname =~ /^DBI:/i) {
31
require LXR::Index::DBI;
32
$index = new LXR::Index::DBI($dbname, @args);
34
elsif ($dbname =~ /^DBM:/i) {
35
require LXR::Index::DB;
36
$index = new LXR::Index::DB($dbname, @args);
39
die "Can't find database, $dbname";
44
# TODO: Add skeleton code here to define the Index interface