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

Maybe I was the only one thick enough to have to take a minute to figure this out, but the '\' there is to prevent interpretation of '::' as the package directory separator, and enforce interpolation of '$class' instead of '$class::Defaults'.

Again, you probably all knew that, or realized it from other comments... but it threw me for a 2-second loop.

for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";
  • Comment on Re: What is the use de-referencing and creating a new anonymous hash in new() and rnew() ?
  • Download Code