Skip to content
Snippets Groups Projects
Commit 7ac8e19f authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

still not happy with UUID generator

parent 28217836
No related branches found
No related tags found
No related merge requests found
...@@ -39,16 +39,21 @@ eval { ...@@ -39,16 +39,21 @@ eval {
if ($@) if ($@)
{ {
eval { require Data::UUID; }; print "no UUID\n";
if ($@) { die "install either UUID or Data::UUID"; } eval {
use Data::UUID;
sub get_uuid sub get_uuid2
{ {
my $uc= new Data::UUID; my $uc= new Data::UUID;
my $str= $uc->create_str(); my $str= $uc->create_str();
$str =~ tr/A-F/a-f/; $str =~ tr/A-F/a-f/;
$str; $str;
} }
*get_uuid= *get_uuid2;
};
if ($@) { die "install either UUID or Data::UUID"; }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment