P is for Practical | |
PerlMonks |
hash reference questionby targetsmart (Curate) |
on Jul 20, 2009 at 09:28 UTC ( [id://781575]=perlquestion: print w/replies, xml ) | Need Help?? |
targetsmart has asked for the wisdom of the Perl Monks concerning the following question:
here is one code
other code both the one liners print
but when I enable warning(-w) the former produces Using a hash as a reference is deprecated at -e line 1. 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. Vivek -- '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.
Back to
Seekers of Perl Wisdom
|
|