in reply to Re^5: Populate Hash
in thread Populate Hash

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^7: Populate Hash
by Corion (Patriarch) on Jul 27, 2009 at 14:56 UTC

    What part of the instructions you got from diagnostics told you to remove the use strict; line? strict prevents you from misspelling variable names, something you do in your code.

    Removing strict tells Perl not to tell you about the errors you made in your script. If you add it again, Perl will tell you again about the errors you made. I won't write your code for you, so you'll have to look a bit closer at your program.

    As a hint, the two variables %myHash and $myHash are different things in Perl.

Re^7: Populate Hash
by ikegami (Patriarch) on Jul 27, 2009 at 15:08 UTC

    Now that I have commented the "use strict" statement

    Turning off error checking does tends to not fix anything.

Re^7: Populate Hash
by mzedeler (Pilgrim) on Jul 28, 2009 at 07:44 UTC

    You have to keep fixing the errors that pop up, rather than removing use strict. If you are overwhelmed by the number of errors, rewrite the code from scratch with use strict from the beginning, so you get to fix the errors one by one.