in reply to What's the difference between $heap->{127.2}{127.1.0.2} and $heap->{'127.2'}{'127.1.0.2'} ?

127.1.0.2 is being interpreted as a version string. Search for "Version Strings" in perldata for details.
  • Comment on Re: What's the difference between $heap->{127.2}{127.1.0.2} and $heap->{'127.2'}{'127.1.0.2'} ?

Replies are listed 'Best First'.
Re^2: What's the difference between $heap->{127.2}{127.1.0.2} and $heap->{'127.2'}{'127.1.0.2'} ?
by AnomalousMonk (Archbishop) on Dec 22, 2008 at 16:44 UTC
    Most particularly, see the first paragraph in the sub-section on 'Version Strings' in the section Scalar value constructors of perldata:
    Note: Version Strings (v-strings) have been deprecated. They will be removed in some future release after Perl 5.8.1. The marginal benefits of v-strings were greatly outweighed by the potential for Surprise and Confusion.
      And pre-version-strings it still would have not been the same as '127.1.0.2', since it would have been interpreted as (127.1) . (0.2), giving a key of '127.10.2'.