An API to the Perl weak references
