in reply to issues maintaining uniqueness

One thing that you should always be very-aware of is CPAN: the rather-vast library of Perl software. Without exception, the first thing that you should do, when contemplating a “new” task, is to check CPAN to see if it's already been done. It probably has.