pileswasp has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print scalar %hash... erm
by davorg (Chancellor) on May 24, 2001 at 19:56 UTC | |
by no_slogan (Deacon) on May 24, 2001 at 20:02 UTC | |
by pileswasp (Monk) on May 24, 2001 at 20:37 UTC | |
by pileswasp (Monk) on May 24, 2001 at 20:27 UTC | |
by chipmunk (Parson) on May 24, 2001 at 21:20 UTC | |
by larryk (Friar) on May 24, 2001 at 23:18 UTC | |
by pileswasp (Monk) on May 25, 2001 at 00:21 UTC | |
by chipmunk (Parson) on May 25, 2001 at 04:59 UTC | |
|