hello,
I have a populates the perl script using DBI, well i am now trying to do it with ADO, My array doesn't return anything, I was wondering if i was missing something here. Please suggest me as were i am going wrong,
thank you
#!F:\iw-home\iw-perl\bin\iwperl.exe
use Win32:

LE;
$RS = Win32:

LE->new("ADODB.Recordset");
$Conn = Win32:

LE->new("ADODB.Connection");
my $dsn = 'PROVIDER=SQLOLEDB;Server=blcmssql02;database=gpoi;uid=application;pwd=g3mba11a';
$Conn->open($dsn);
if (!$Conn)
{
die "Could not open connection to DSN because of [$!]";
}
$RS->{ActiveConnection} = $Conn;
$RS->{Source} = "SELECT NAME FROM V_MBR_AFFILIATE_LIST";
$RS->Open;
$RS = $Conn->Execute("SELECT NAME FROM V_MBR_AFFILIATE_LIST");
my
@id;
while(my
@row = $RS -> fetchrow_array()){
#push (
@name, $row[0]);
push (
@id, $row[1]);
print "<option label=\"$row[0]\" value=\"$row[1]]\" />\n" ;
$RS->MoveNext;
}
#print "<substitution>\n";
#print "<option selected=\"t\" label=\"All\" value=\"All\" />\n";
$RS->Close;
$Conn->Close;
Thanks