in reply to Re: Re^4: Tripwire tests and future-proofing
in thread Tripwire tests and future-proofing

keys in scalar context returns the number of elements in the resulting list. Whether this is magic in the keys function, or it's returning an "array" instead of a "list", I have no idea.

>perl -e"%x=qw/foo bar 1 2 3 4 baz bar/; print scalar keys %x" 4