in reply to Re: NET::LDAP and objectGUID
in thread NET::LDAP and objectGUID

Hi ksublondie,

I don't know anything about LDAP GUIDs, but I just wanted to suggest a way to shorten that code. Note that unlike the regex, this works for input strings of any length.

sub GuidToString { return join '', map {"\\$_"} unpack "(H2)*", shift; }

Regards,
-- Hauke D