in reply to Re: (tye)Re: forcing numeric context
in thread forcing numeric context
Just to make sure you didn't miss the point. If you use $f= !1 then 0+$f does not cause a warning. So, if you want $f to stay the empty string, you can also use: $f ||= !1; if you don't have control over how $f is initially set. Then 0+ and sprintf "%d", etc. will all work without giving a warning.
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (tye)Re2: forcing numeric context
by John M. Dlugosz (Monsignor) on Dec 18, 2002 at 15:20 UTC | |
by tye (Sage) on Dec 18, 2002 at 15:39 UTC | |
by Aristotle (Chancellor) on Dec 18, 2002 at 16:26 UTC | |
by John M. Dlugosz (Monsignor) on Dec 18, 2002 at 17:00 UTC |