On Tue, Jul 3, 2012 at 4:59 AM, Ed Avis <eda@waniasset.com> wrote: > As in Python, 'in' could work for both arrays and hashes: > > $x in @array > > $x in %hash # same as exists $hash{$x} > So C<< $x in @array >> checks the values, and C<< $x in %hash >> checks the keys? Isn't that confusing? With the auto-dereferencing introduced in recent perls, the RHS could > be an array or hash ref. > yuck. I still think the cost of not working for all hashes and arrays is too high.Thread Previous | Thread Next