in reply to Re: Hash value typing
in thread Hash value typing
Thank you!
Now that just leaves me with one more question? Why do the Perl developers (or others for that matter) consider it OK to change the internal respresentation of data (albeit the narrow context of Hash values) when it is referenced? i.e from one reference to another Devel::Peek may (because it depends on the context of the reference) give you different results without you ever having consciously changed the data itself! My guess is that, by way of my example, once the conversion of 1 from binary (32|64 bit integer) to character "1" happens (such as the length function would trigger) someone decided it was likely to happen again so save a few cycles and replace the binary with the character string - nobody's looking or will know right - however, I have just shown one case it matters!
Again thanks. As the wise old doctor said when told "Doctor when I do this it hurts!", the reply "Then don't do that!". Sort of like '\' looks reasonable but it doesn't do what you(well more specifically I) expect(before the pain reminds me not to do that)!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Hash value typing
by shmem (Chancellor) on Jun 10, 2018 at 16:05 UTC | |
by waynerasm (Initiate) on Jun 11, 2018 at 01:10 UTC | |
|
Re^3: Hash value typing
by haukex (Archbishop) on Jun 10, 2018 at 22:24 UTC | |
by waynerasm (Initiate) on Jun 11, 2018 at 01:02 UTC |