Thanks Thierry,
You've got me headed in a good direction! I'm new to perl, so every useful example I can work my way through sure helps. I've taken your example and adapted it a bit (although not much at all):
#!/usr/bin/perl
use Win32::OLE ('in');
use Win32::OLE::Const ('Microsoft ActiveX Data Objects 2.5');
%hash = &List_Alias("Whatever"

;
sub List_Alias {
# Get the passed value
my $arg = shift;
# Define the connection string
my $dbfile = 'C:\log\Firm57 Phone Log\Phone_Log_Data.mdb';
my $rsActiveConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=$dbfile;";
# Concatenate the sql
my $sql = "SELECT * from Phone_Log_Data";
# Open the recordset
$rst->Open($sql,$rsActiveConn,adOpenForwardOnly,adLockReadOnly,adCmdText);
# Get the complete table as a string
my $string = $rst->GetString(adClipString, undef, " ", " "

;
# Save the file in a hash
my %ref = split(/ /, $string);
# Close recordset
$rst->Close();
# Return the hash
return %ref;
}
exit;
I'm getting an error trying to open the recordset:
C:\dev\Perl Script\mySQL>perl test.pl
Can't call method "Open" on an undefined value at test.pl line 22.
Any idea(s) as to which part of this statement is undefined?
Thanks again,