Here's a simple program that takes a URL parameter, breaks it into an array and then looks up each entry in an MS Access database. Unfortuantely, when the array has more than 14 entries, a perl.exe error window pops up. Could someone please guide me along the path to resolution?
#!/usr/local/bin/bash
use CGI qw(:standard);
use Win32::ODBC;
$qry = new Win32::ODBC('support_agreement_DSN');
@mac = split (/,/,param('MAC'));
foreach $mac_addr (@mac) {
$sql = "SELECT agreement.Field2 FROM agreement WHERE (((agreement.
+Field1)='$mac_addr'))";
$qry->Sql($sql);
$qry->FetchRow();
$support_status{$mac_addr}= $qry->Data('agreement.Field2');
}
$qry->Close();