tgolf4fun has asked for the wisdom of the Perl Monks concerning the following question:
I've tried to write this every way I can imagine, nothing works. Please oh please someone help me so I can get some sleep.foreach $k(keys %hash){delete ($hash{$k}) unless exists $end{$_};}
2004-11-12 Edited by Arunbear: Changed title from '3 days of frustration', as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Delete keys in hash if they exist in another hash
by davorg (Chancellor) on Nov 11, 2004 at 09:00 UTC | |
by tgolf4fun (Novice) on Nov 13, 2004 at 00:23 UTC | |
|
Re: Delete keys in hash if they exist in another hash
by inman (Curate) on Nov 11, 2004 at 08:57 UTC | |
by tachyon (Chancellor) on Nov 11, 2004 at 09:49 UTC | |
by tgolf4fun (Novice) on Nov 13, 2004 at 00:20 UTC |