in reply to Re: Comparison problem
in thread Comparison problem

I haven't tried "my" or "strict" yet. I plan to take that step as soon as I feel confident with a larger set of perl commands. Thanks for pointing me to that direction, though!

Replies are listed 'Best First'.
Re^3: Comparison problem
by jdporter (Paladin) on Oct 27, 2004 at 22:43 UTC
    Unfortunately, that's not quite the right attitude. That's like saying "I'll learn how the safety switch works after I've mastered pulling the trigger." Kind of.

    Turning on 'strict' (one of the consequences of which is that you'll have to 'my' your variables) helps you catch noob errors. When you've mastered that fundamental mode of programming, then you'll be better equipped to foray into the minefields of global variables, symbolic references, dynamic subroutines, etc.

      Well, obviously, I ought to have written: "I haven't seriously tried 'my' or 'strict' yet."

      In fact, I have already tried "decent" programming once or twice but, you know, since I'm only an amateur (no special training, no undergraduate studies, no professional ambitions... you see, I'm just a teacher of English), I only get frustrated when I type the magic words "use strict" and then... nothing works! Unless, of course, I do everything properly.

      Of course, I would like to get there but, for the time being, I simply want to enjoy the overwhelming power perl has given me as I try to modify texts or create different versions of the same test in a desperate attempt to avert cheating. ;-)

      So... OK! I admit it! I'm so voluptuous that I refuse to practice "safe" programming... for the time being... Just let me have some fun first! After all, penance and repentance come after you've sinned, don't they, brother? ;-)

        It's serious, but all too common, fundamental mistake to think that if your program coughed up no errors, it "worked". Even so, I do encourage you to have fun. We learn from our mistakes too.