I'm new to Perl, and I need to generate a unique ID with 6 characters and only numbers, is there a way to do that simply?
I found :
use UUID::Generator::PurePerl;
sub create_search_id {
my $this =shift;
my $args=shift;
my $ug = UUID::Generator::PurePerl->new();
my $uuid1 = $ug->generate_v1();
return $uuid1;
}
But the use
statement generates an internal server error... Thanks !