Dr.Ruud wrote: > Rob Dixon schreef: >> Dr.Ruud: > >>> There is no real way to test if a value inside a variable has a >>> numeric "personality". [...] >> There is indeed a simple way to test in Perl whether a scalar value >> is being treated as a string > > I stated something about numeric, you about string. Do you see the > problem?
No I don't. Perl will treat each scalar either as numeric if it has a valid numeric value, or otherwise as a string. It is either a string or not a string. This leads to variables being manipulated numerically if they have ever been numeric and that value survives, and otherwise as strings. It is intuitively what you would expect. Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/