Skip to content
Perl 6 bindings for libuuid
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib use NativeLibs:auth<github:salortiz> explicitly Apr 5, 2019
t Fix case problems on macOS Nov 3, 2018
.gitignore start May 26, 2017
.travis.yml explicitly use libuuid ABI/API version 1 Apr 5, 2019
Changes use NativeLibs:auth<github:salortiz> explicitly Apr 5, 2019
META6.json use NativeLibs:auth<github:salortiz> explicitly Apr 5, 2019
Makefile Add simple Makefile to each test/release Nov 7, 2018 added note about MacOS brew install Nov 7, 2018


Build Status

Perl 6 bindings for libuuid.

This library creates Universally Unique IDentifiers (UUID).

The uuid will be generated based on high-quality randomness from /dev/urandom, if available. If it is not available, then it will use an alternative algorithm which uses the current time, the local ethernet MAC address (if available), and random data generated using a pseudo-random generator.


This module depends on libuuid, so it must be installed first.

For Linux ubuntu, try sudo apt-get install uuid-dev.

On Mac you can get hold of it via brew install ossp-uuid

Then install this module with zef install LibUUID.


use LibUUID;

my $uuid =;  # Create a new UUID

$uuid =$myblob); # From existing blob of 16 bytes

$uuid ='39ed750e-a1bf-4792-81d6-e098f01152d3'); # From Str

say ~$uuid; # Stringify to hex digits with dashes

say $uuid.Blob; # Blobify to Blob of 16 bytes

See Also

UUID is a Perl 6 native UUID generator which generates UUIDs from Perl's internal random number generator.

On Linux machines, you can get UUIDs straight from the kernel:

cat /proc/sys/kernel/random/uuid
You can’t perform that action at this time.