Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

$a and $b are bad variable names anyway

by petdance (Parson)
on Feb 28, 2002 at 14:30 UTC ( #148221=note: print w/replies, xml ) Need Help??

in reply to use strict won't require explicit name for all variables?

And really, you shouldn't be using $a and $b as variable names anyway. Surely there is something more descriptive than $a and $b (or $field1 and $field2, or whatever) that shows the meaning of what those variables do.

<megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

  • Comment on $a and $b are bad variable names anyway

Replies are listed 'Best First'.
Re: $a and $b are bad variable names anyway
by Biker (Priest) on Feb 28, 2002 at 14:54 UTC

    I fullheartedly agree and I have told my co-worker so. As I mentioned in my earlier node, I wouldn't use such variable names at all.

    But the point was merely why we couldn't use the variable names as any variable name. Just imagine that in this specific case it did have a real meaning. (Which it didn't.)

    Everything will go worng!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2016-10-26 12:04 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (340 votes). Check out past polls.