Data-GUID
view release on metacpan or search on metacpan
lib/Data/GUID.pm view on Meta::CPAN
#pod validation method, this method will only throw an exception if the given data
#pod is of the wrong size.
#pod
#pod =cut
sub from_data_uuid {
my ($class, $value) = @_;
my $length = do { use bytes; defined $value ? length $value : 0; };
Carp::croak "given value is not a valid Data::UUID value" if $length != 16;
bless \$value => $class;
}
#pod =head1 IDENTIFYING GUIDS
#pod
#pod =head2 string_guid_regex
#pod
#pod =head2 hex_guid_regex
#pod
#pod =head2 base64_guid_regex
#pod
( run in 1.321 second using v1.01-cache-2.11-cpan-65fba6d93b7 )