perlquestion
targetsmart
here is one code
<c>
perl -e "%package = ( 'zips' => {1,2,3,4} ); print %package->{zips};"
</c>
other code
<c>
perl -e "%package = ( 'zips' => {1,2,3,4} ); print $package{zips};"
</c>
both the one liners print <p>
<c>
HASH(0x23bbe4)
</c>
but when I enable warning(-w) the former produces<p>
Using a hash as a reference is deprecated at -e line 1.<p>
I thought only the later should work, the former should fail, but it is also working but outputs along with a warning. can anyone tell me what happens if I do like %package->{key} considering the above example.
<div class="pmsig"><div class="pmsig-520366">
<hr>
Vivek
<br>
-- 'I' am not the body, 'I' am the 'soul', which has no beginning or no end, no attachment or no aversion, nothing to attain or lose.
</div></div>