I agree that the quotes should probably be removed, but for reasons of clarity -- that is, people are likely to glance at the code and accidentally interpret the == as an eq due to seeing quotes. == does "true numerical comparison" whether or not there are quotes there; the string gets converted to a number for the ==, and it DWYM.
In reply to Re: (elbie): Interpreting values alternately as $trings and Integers = confused response by Perl
by premchai21
in thread Interpreting values alternately as $trings and Integers = confused response by Perl
by jerrygarciuh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |