10 - That's only a warning, the program would still run. Sadly $a is a global variable. I think a better advice would be to actually use more meaningful variable names (in addition to strict / warnings of course), and especially avoid a and b at all costs
10 - That's only a warning, the program would still run. Sadly
$a
is a global variable. I think a better advice would be to actually use more meaningful variable names (in addition to strict / warnings of course), and especially avoida
andb
at all costsYeah, I described it as a warning. His original complaint was that the program continued silently - so a warning is an improvement there.
You're right, of course, that better variable names is always a good idea. But no matter how descriptive the name is, you can still mistype the sigil.