pg has asked for the wisdom of the Perl Monks concerning the following question:
It gives you a FIVE, which is quite easy to understand, as it matches $#a.@a = (1,2,4,6,8); $a = @a; print $a;
It gives you 5/8. Now I don't understand, what does this number or fraction or whatever mean?%a = (a=>1,b=>2,c=>4,d=>6,e=>8); $a = %a; print $a;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what does that value mean, when you evaluate hash in a scalar context?
by runrig (Abbot) on Dec 14, 2002 at 17:03 UTC | |
by pg (Canon) on Dec 14, 2002 at 17:36 UTC | |
by dingus (Friar) on Dec 14, 2002 at 17:47 UTC | |
by dakkar (Hermit) on Dec 14, 2002 at 17:47 UTC | |
|
Re: what does that value mean, when you evaluate hash in a scalar context?
by Revelation (Deacon) on Dec 14, 2002 at 18:53 UTC | |
|
Re: what does that value mean, when you evaluate hash in a scalar context?
by demerphq (Chancellor) on Dec 15, 2002 at 01:14 UTC | |
|
Re: what does that value mean, when you evaluate hash in a scalar context?
by Anonymous Monk on Jun 22, 2005 at 01:24 UTC |