in reply to Warning-free numerification of a string
for ($val1, $val2) { $_--; $_++; }
works, at least for most values, but
for ($val1, $val2) { no warnings 'numeric'; $_ += 0; }
is far less riskier and far more readable/maintainable.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Warning-free numerification of a string
by oxone (Friar) on Aug 08, 2007 at 19:21 UTC | |
by syphilis (Archbishop) on Aug 09, 2007 at 03:02 UTC | |
by varian (Chaplain) on Aug 08, 2007 at 22:09 UTC |