go ahead... be a heretic | |
PerlMonks |
print scalar %hash... ermby pileswasp (Monk) |
on May 24, 2001 at 19:48 UTC ( [id://82966]=perlquestion: print w/replies, xml ) | Need Help?? |
pileswasp has asked for the wisdom of the Perl Monks concerning the following question:
I was just playing around - as you do - (I make my own jam as well) and I've come across something I hadn't noticed before.
If you do: perl -e 'print scalar @INC' (or any other array) you get the number of elements in the array. Fair enough. However, if you do: perl -e 'print scalar %ENV' (or any other hash) you get something along the lines of 42/64. I'm confused. Can anyone tell me what this means? It's not the number of keys/something 'cause perl -e 'print scalar keys %ENV' gives me 53 on the same %ENV.
Back to
Seekers of Perl Wisdom
|
|