Because of the way vSphere SDK for Perl maps the vSphere API into Perl, you have to specify arguments to callback methods differently from the way you specify arguments to other methods. You can use
PrimType to specify untyped arguments in scheduled tasks and callbacks.
For example, consider a scheduled task that periodically creates a snapshot. The CreateSnapshot() method takes four arguments,
name,
description,
memory, and
quiesce.
You use the MethodActionArgument objects in the order defined in the positional API, not with the usual
name => $value syntax. You can then supply the four values defined above as arguments to
CreateSnapshot().