Sample code for 30+ languages & platforms
Perl

Generate UUID

See more Encryption Examples

Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format such as "de305d54-75b4-431b-adb2-eb6b9e546014".

Chilkat Perl Downloads

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $crypt = Chilkat2::Crypt2->new;

my $uuid = $crypt->GenerateUuid();

print $uuid, "\n";