Rob Dixon schreef: > Dr.Ruud: >> Rob Dixon: >>> Dr.Ruud: >>>> That Data::Dumper prefers to print the numeric face of the >>>> variable, if available, is a matter of choice inside the code of >>>> Data::Dumper. Maybe the other modules that you use, have >>>> Data::Dumper embedded? >>> >>> That is not true. >> >> I am not sure which of the above you consider not true, so I'll show >> it with a variant of your own code. >> My "if available" is equivalent to the "PVIV with IOK" that > > [...] > That is not a variant of my code, it is very different indeed. [...]
You said "That is not true." and gave an illustration that is only distantly related to what I stated. As you can derive from my quote, I assumed that your "That is not true." was about this statement of mine: "That Data::Dumper prefers to print the numeric face of the variable, if available, is a matter of choice inside the code of Data::Dumper." That statement is still true, as I illustrated with my variant of your code. OP's question was about how to get or enforce the numerical personality of a variable, because of how Language::Prolog::Yaswi works. He later assumed that the way Data::Dumper treats a variable is similar to how Language::Prolog::Yaswi does that, which was a reasonable assumption. At some point, OP stated: "So I think there is not better way than adding 0". I didn't like that approach, because it changes the value inside the variable itself which can be lossy (unless 0+ is optimised not to do that, I am not sure it isn't), so I suggested the (interesting) method of numeric comparison. -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/