in reply to Cookie user ID queston

Take a look at Data::UUID.

----
Reinvent a rounder wheel.

Note: All code is untested, unless otherwise stated