in reply to What is the use de-referencing and creating a new anonymous hash in new() and rnew() ?

${"$class\::Defaults"} is a symbolic reference to the Defaults hash in the respective class (Devel::Symdump here).  The % dereferences it, so the resulting hash's flattened content will initialise the anonymous hash {...} which is going to hold the instance data of the object that is created by blessing the hashref into $class.

  • Comment on Re: What is the use de-referencing and creating a new anonymous hash in new() and rnew() ?
  • Select or Download Code