in reply to "Correct" program style questions

Pros and cons of POSIX character classes? Con: I have never ever seen anyone use them before. Pro: they are portable.

I would suggest naming your variables $tainted_name and $tainted_color instead of $_name and $_color, to make it more obvious what you're doing.

Replies are listed 'Best First'.
Re: Re: "Correct" program style questions
by DapperDan (Pilgrim) on Oct 23, 2002 at 09:36 UTC
    ... or maybe something more terse like $t_name and t_color. That's just a question of style really though; I agree with your point.
      $t_name doesn't mean the same thing as $tainted_name. In general I suggest avoiding the impulse to abbreviate. It may make the code shorter, but it also makes it harder to read.