I'm curious if anyone would be interested in a

$mesg->as_hash;

function. We currently have this implemented in an overlay perl module we use (Stanford::Directory) to make using returned results simpler for our client base.

Essentially, this allows you to do things like:

$uid = ($entry->uid)[0];
$displayName = ($entry->displayName);

Where "uid" is a multi-valued attribute, so uid[0] is the first value of the uid attribute.

I think this generally makes for easily readable and writeable output.

Thoughts?

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

Reply via email to