Help for this page

Select Code to Download


  1. or download this
    print "ref($hash->{a})"; #says its an hash reference 
    print "$hash->{a}->{1}" ;#returns 2 as expected
    print "$hash->{a}{1}"; #also returns 2 ,my question is how without der
    +eferencing the key of $hash->{a} its value is getting displayed?