[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Does a hash contain any keys other than <LIST>?



Peter Scott wrote:
> 
> @mark{@k} = ();
> print "@{[grep ! $mark{$_}, keys %h]}\n";

But that fails when '' or '0' are keys.  Maybe exists() would be better.

John Porter


==== Want to unsubscribe from Fun With Perl?
==== Well, if you insist... Send mail with body "unsubscribe" to
==== fwp-request@technofile.org