Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Fix-it fix-it fix-it!

by davido (Archbishop)
on Nov 14, 2012 at 19:41 UTC ( #1003881=note: print w/ replies, xml ) Need Help??


in reply to Fix-it fix-it fix-it!

Perl's identifiers are case sensitive. %userHash is not the same as %userhash.

One of the first things I do in such situations is a global case-insensitive search for the identifier using my editor. As I iterate through the search results it's much easier for my eyes to spot when something changes than by just skimming through the code.

One thing that might have made it easier to spot would be following Schwern's Skimmable Code talk's advice. Moving some of the complexity in your while/if constructs into subroutines would move the usage of %userhash visually closer to its declaration, which might be a good thing.


Dave


Comment on Re: Fix-it fix-it fix-it!
Select or Download Code
Re^2: Fix-it fix-it fix-it!
by squimby (Acolyte) on Nov 14, 2012 at 19:43 UTC
    Pardon my french, but dammit! I feel like an idiot. Removing this thread.
        Noted - maybe somebody else can use my script in the future if they correct that mistake :P

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (13)
As of 2014-10-23 11:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls