in reply to Re^3: Spot the Bug
in thread Spot the Bug

Knowing at least the common perlvars is important, but more generally, I think the moral of the story is to look at global special variables when something unexpected shows up.

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^5: Spot the Bug
by tphyahoo (Vicar) on Sep 10, 2005 at 11:12 UTC
    Well, I'm not sure I agree.

    Knowing your perlvars is what I *thought* was the moral of the story initially, which is what I burnt those five minutes on, rather than spotting the <INPUT> problem. Or did I misunderstand you?

    I do agree that knowing the perlvars is important, for reading other's code. But that doesn't mean you can't use English in your own code, to be nice to others less enlightened / experienced.

    Ultimately it's a judgement call though, I suppose. If you happen to know there are a lot of new hires coming on to a project that are transitioning from some other language to perl, then it might ease the transition to use English for a while. I mean, that's why it's there. TIMTOWTDI and all that :)