Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by davido (Cardinal)
on Nov 14, 2012 at 19:41 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1003881]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-20 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found