in reply to Re^3: Don't treat your numbers as strings, or Interpolation is worse than you might think
in thread Don't treat your numbers as strings, or Interpolation is worse than you might think
it converts your IV to PVIV.print "ARRAY: @ary2\n"; # IV -> PVIV
executed on a PVIV, would keep it a PVIV. Why does it reverse it to an IV. It's a kind of rule internally ? When you make a numeric operation on a scalar, it convert it into an IV ? I mean, if there is a type which carry both (PVIV), it could have continue with it ? No ? Are there reasons other than the idea of using less memory/less timecode ?$_ += 0 foreach @ary2;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Don't treat your numbers as strings, or Interpolation is worse than you might think
by Joost (Canon) on Jul 23, 2006 at 13:21 UTC | |
by Ieronim (Friar) on Jul 23, 2006 at 16:43 UTC |