On Win* machines, this will work #!perl use strict; use warnings; use Win32; for (0..4) { printf "%s\n", Win32::GuidGen(); }