in reply to Scaler of a hash, odd problem

Your code's broken. Hashes in scalar context don't return the number of keys in the hash, they return a bit of debugging info.

If you want the number of entries in the hash, use keys in scalar context -- scalar(keys %foo) for example.

Replies are listed 'Best First'.
Re: Re: Scaler of a hash, odd problem
by Anonymous Monk on Dec 12, 2002 at 18:47 UTC
    duh.

    thanks