The perl extensions to the libexacct(3LIB) API provides the following functions for tasks.
settaskid(2)
gettaskid(2)
The Sun::Solaris::Task module has no class methods.
The Sun::Solaris::Task module has no object methods.