Package DE_EPAGES::WebInterfacePoolDB::API::ASPoolDB
provides access to the ASPoolDB database
@EXPORT_OK |
Functions
RunOnASPoolDB
Connects to the ASPoolDB database, executes a function and then disconnects from the database. Provides a reference to an object of type DE_EPAGES::WebInterfacePoolDB::API::Object::ASPoolDB as first parameter to the function.
Syntax |
$Result = RunOnASPoolDB( $Sub ); @Result = RunOnASPoolDB( $Sub ); |
Example |
$aPools = RunOnASPoolDB( sub { my $ASPoolDB = shift; return $ASPoolDB->getAllPools; }); |
Input |
|
Return |
|