in reply to Re^2: The number of references to a variable
in thread The number of references to a variable

I wouldn't call that copying. Your snippet creates a new reference. And yes, that works.
  • Comment on Re^3: The number of references to a variable