Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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.


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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003881]
and the sunlight beams...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2018-06-19 01:27 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.