Thread Schlüssel im Hash festlegen / begrenzen: wie ging das nochmal? (9 answers)
Opened by Crian at 2004-04-21 14:52

Taulmarill
 2004-04-21 16:28
#81754 #81754
User since
2004-02-19
1750 Artikel
BenutzerIn

user image
ICH HABS, ICH HABS, ICH HABS!

Code: (dl )
1
2
3
use Hash::Util qw(lock_keys);
lock_keys(%hash);
lock_keys(%hash, @keys);


aus perldoc Hash::Util

Restricts the given %hash's set of keys to @keys. If
@keys is not given it restricts it to its current
keyset. No more keys can be added. delete() and
exists() will still work, but it does not effect the set
of allowed keys.

--edit--
ah, verdamt. 3 min. zu spät :-)\n\n

<!--EDIT|Taulmarill|1082550593-->
$_=unpack"B*",~pack"H*",$_ and y&1|0& |#&&print"$_\n"for@.=qw BFA2F7C39139F45F78
0A28104594444504400 0A2F107D54447DE7800 0A2110453444450500 73CF1045138445F4800 0
F3EF2044E3D17DE 8A08A0451412411 F3CF207DF41C79E 820A20451412414 83E93C4513D17D2B

View full thread Schlüssel im Hash festlegen / begrenzen: wie ging das nochmal?