serializes and writes all the object representations of the scalar arguments out to the specified handle
$handle - the handle to write to (defaults to stdin/stdout)
$scalar - an object scalar to serialize into bytes
... - any number of object scalars can be specified
# sleep can interoperate with Java servers by serializing objects # and sending them over a channel... $handle = connect("127.0.0.1", 9998); $list = [new LinkedList]; # do some stuff to $list # write a java.util.LinkedList to $handle writeAsObject($handle, $list); # read an object in. $object = readAsObject($handle);