http://www.perlmonks.org?node_id=544428


in reply to Re: Patching a Package (Scalar::Util)
in thread Patching a Package (Scalar::Util)

Scalar::Util only exports refaddr by request, but your suggestion is good. I have added the following (within the if test):
# Allow users of Scalar::Util to import the new symbol on request. push @Scalar::Util::EXPORT_OK,'refaddr';