AnyMongo
view release on metacpan or search on metacpan
lib/AnyMongo/BSON/OID.pm view on Meta::CPAN
# now Alice is 21
To create a copy of an existing OID, you must set the value attribute in the
constructor. For example:
my $id1 = MongoDB::OID->new;
my $id2 = MongoDB::OID->new(value => $id1->value);
Now C<$id1> and C<$id2> will have the same value.
Warning: at the moment, OID generation is not thread safe.
=head1 DESCRIPTION
=head1 SEE ALSO
Core documentation on object ids: L<http://dochub.mongodb.org/core/objectids>.
=head1 ATTRIBUTES
=head2 value
( run in 0.237 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )