The Perl Library methods can be categorized into three functional
areas:
¶ Primary methods
¶ Convenience methods
¶ Debug logging methods
The following subsections describe these methods.
Primary Methods
The following table lists the primary methods, briefly describing
their usage and arguments.
Primary Method and Description
Arguments
new
This is the UaTk constructor, used to create a new UaTk object.
For example:
use UaTk;
obj = UaTk->new();
No arguments
UaTkMain
This method is called by the application when it is ready to start
receiving data. UaTkMain will read from STDIN and write to
STDOUT to communicate with the application connection
manager. All commands detected in the data stream will cause the
appropriate handler to be invoked.
All command handlers should be registered prior to calling
UaTkMain.
See also: RegisterCmdHandler
No arguments
SendRecord
Once a record is found that the handler determines should be
included, SendRecord( ) is called. This method will call
SendTermination(1) to indicate end-of-record, so only one call to
SendRecord( ) is allowed per record.
See also: SendTermination
\%record - hash
reference containing a
list of attribute/value
pairs delimited by : .
Developing Your Application in Perl
63
Tivoli® SecureWay Application Management Toolkit Guide