Search code examples
perlrpcexist-db

Perl: how to validate successful call to "XML::eXistDB::RPC"


i am writing a small perl app using the eXist database, and i am wondering is: how can i see that my call

my $eXist = XML::eXistDB::RPC->new( destination=>$eXist_db, repository=>$bank, user=>"admin", password=>"pass" ) ;

is successful or not ?

thanx


Solution

  • When object initialisation fails, it will be messaged through Log::Report, so hook into that.

    This only happens if the programmer to neglected to set either rpc or destination parameter. The new constructor will always return an object instance.