Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: Stupid mistakes I repeatedly make

by tilly (Archbishop)
on Mar 28, 2005 at 00:52 UTC ( #442722=note: print w/replies, xml ) Need Help??


in reply to Re^3: Stupid mistakes I repeatedly make
in thread Stupid mistakes I repeatedly make

I am religious about avoiding having a hash and a hashref in scope with the same name. That way lies insanity and (a couple of refactorings later) hard to track down bugs.
  • Comment on Re^4: Stupid mistakes I repeatedly make

Replies are listed 'Best First'.
Re^5: Stupid mistakes I repeatedly make
by runrig (Abbot) on Mar 28, 2005 at 19:41 UTC
    Oh, I didn't actually have a hash and hashref in the same scope with the same name. Two functions, one with a hash, the other with a hashref, and me not paying attention to which was which. Nothing use strict couldn't find immediately.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://442722]
help
Chatterbox?
[Lady_Aleena]: The default perl on the version of cPanel my web hosts uses is 5.8.8 which means I am dreadfully behind. I doubt perl 6 will hit my web host in my lifetime.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2017-05-29 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?