Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: "Correct" program style questions

by perrin (Chancellor)
on Oct 23, 2002 at 05:52 UTC ( #207299=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: "Correct" program style questions
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://207299]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2015-07-03 03:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls