Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
     use strict;
    ...
     $heap->{'127.2'}{'127.1.0.2'} = 2;
     print "\$heap->{'127.2'}{'127.1.0.2'}: $heap->{'127.2'}{'127.1.0.2'}\
    +n";
     print "\$heap->{127.2}{127.1.0.2}: $heap->{127.2}{127.1.0.2}\n";
    
  2. or download this
    $heap->{'172.16'}: 1
    $heap->{172.16}: 1
    $heap->{'127.2'}{'127.1.0.2'}: 2
    Use of uninitialized value in concatenation (.) or string at /home/lar
    +ry/project/sysmonitor/test/testHash2.pl line 28.
    $heap->{127.2}{127.1.0.2}: