Opening a Database

A database is opened with the following command:

($db, $status) = Understand::open($name); 

If the open fails, $status will be defined with a string indicating the kind of failure. On a successful open, the returned $db will be an object from the class Understand::Db. For example, to test the returned status:

($db, $status) = Understand::open("test.udc"); 
die "Error status: ",$status,"\n" if $status; 

See Understand::open() for detailed information.

Only one database may be opened at a time. An error is returned if you attempt to open a second, simultaneous database.

Opening a database consumes an Understand license.


Scientific Toolworks, Inc.
http://www.scitools.com