Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by pobocks (Chaplain)
on Nov 29, 2008 at 10:15 UTC ( [id://726756]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://726756]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-25 01:41 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found