RE: scalar on a populated hash. NEVER MIND

2006-05-05 Thread Smith, Derek
_ From: Smith, Derek Sent: Friday, May 05, 2006 11:28 AM To: 'Perl Beginners' Subject: scalar on a populated hash. I do not understand why scalar is returning me 2/8? Also isn't scalar %hashname the recommended way to get a count of the key or values in any hash? I tried scalar $sc{

RE: scalar on a populated hash. NEVER MIND

2006-05-05 Thread Mr. Shawn H. Corey
On Fri, 2006-05-05 at 12:07 -0400, Smith, Derek wrote: > If you evaluate a hash in a scalar context, it returns a value that is > true if and only if the hash contains any key/value pairs. (If there are > any key/value pairs, the value returned is a string consisting of the > number of used buckets