db.Search Not working in Perl (2nd parameter Date/Nothing keyword)

I have a very simple perl script that accesses the Domino object model to report a document collection count. It works fine when I gather the doc collection using $db->$AllDocuments, however $db->Search never seems to work. The error returned is “Type MisMatch” for parameter 2 (which is a Date Value or Nothing Keyword).If I don’t define the value, the error states that the parameter is not optional. Anyone know why this function is failing? I have yet to find anything on the web about this specific issue.

Here is the code that works (stripped down for clarity):

use strict;

use Win32::OLE;

my $Notes = Win32::OLE->new(‘Lotus.NotesSession’)

my $Database = $Notes->GetDatabase(‘’, ‘names.nsf’);

my $AllDocuments = $Database->AllDocuments;

print $AllDocuments->Count;

Here is the code that returns “Type MisMatch” and fails:

use strict;

use Win32::OLE;

my $Notes = Win32::OLE->new(‘Lotus.NotesSession’)

my $Database = $Notes->GetDatabase(‘’, ‘names.nsf’);

my $Nothing = “”;

#I’ve even tried $Nothing = Date::Simple->new(‘1980-01-01’);

my $doccol = $Database->Search(‘Form=“Person”’, $Nothing, 0);

print $doccol->Count;

Subject: db.Search Not working in Perl (2nd parameter Date/Nothing keyword)

Answered in R4 7 R5 forum.

Subject: RESOLVED - db.Search Not working in Perl (2nd parameter Date/Nothing keyword)

RESOLVED - http://www-10.lotus.com/ldd/46dom.nsf/DateAllThreadedweb/bcec50a026711a368525700500078cdd?OpenDocument