http://qs321.pair.com?node_id=719723


in reply to GUIDs returned as gibberish (ODBC/MS SQL)

A GUID is at core a 128 bit number.

The Wikipedia link above has all the information you need to convert between the binary and the text representation.

A cpan search gives Data:GUID. But on first glance there is no method for a direct binary -> text conversion.