If it is one of 8,9,A,B it is conforming to the current spec (0-7 are reserved for backward compatibility, C,D are reserved for Microsoft, and E,F are reserved for. The first (hex)digit of the DDDD part determines the variant. The Internet Draft "UUIDs and GUIDs" by Paul J. A standard-conforming UUID may be one of several variants, it looks like this: AAAAAAAA-BBBB-CCCC-DDDD-FFFFFFFFFFFF. The module allows exporting of several standard namespace UUIDs: NameSpace_DNS NameSpace_URL NameSpace_OID NameSpace_X500 AUTHOR Print $ug->create_from_name_str(NameSpace_URL, "EXPORT # UUID NameSpace_URL and name "$ug = Data::UUID->new # this creates a new UUID in string form, based on the standard namespace # returns -1, 0 or 1 depending on whether uuid1 less # recreate binary UUID from Base64-encoded stringįinally, two binary UUIDs can be compared using the following method: # convert to hex string (using upper, rather than lower, case letters)Ĭonversely, string UUIDs can be converted back to binary form: Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format. # convert to conventional string representation # creates UUID string as a Base64-encoded stringīinary UUIDs can be converted to printable strings using following methods: # Note that digits A-F are capitalized, which is contrary to rfc4122 # creates UUID string, using conventional UUID string format, # creates binary (16-byte long binary value) UUID based on particular # creates binary (16 byte long binary value) UUID. In all methods, is a UUID and is a free form string. This modules provides several methods to create a UUID. (See RFC 4122.) It provides reasonably efficient and reliable framework for generating UUIDs and supports fairly high allocation rates - 10 million per second per machine - and therefore is suitable for identifying both extremely short-lived and very persistent objects on a given system as well as across the network. The algorithm for UUID generation, used by this extension, is described in the Internet Draft "UUIDs and GUIDs" by Paul J. Microsoft COM/DCOM for instance, uses GUIDs very extensively to uniquely identify classes, applications and components across network-connected systems. Currently many different technologies rely on UUIDs to provide unique identity for various software components. UUIDs were originally used in the Network Computing System (NCS) and later in the Open Software Foundation's (OSF) Distributed Computing Environment. A UUID is 128 bits long, and is guaranteed to be different from all other UUIDs/GUIDs generated until 3400 CE. This module provides a framework for generating v3 UUIDs (Universally Unique Identifiers, also known as GUIDs (Globally Unique Identifiers). $uuid = $ug->from_string( $str ) DESCRIPTION Its interface may be just a little more straightforward for the average Perl programer. This is a programmable web service that will provide you with a UUID. Right now, it relies on Data::UUID, but it may not in the future. The module Data::GUID provides another interface for generating GUIDs. Data::UUID - Globally/Universally Unique Identifiers (GUIDs/UUIDs) SEE INSTEAD?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |