Thread array im hash (30 answers)
Opened by Free Faq at 2004-03-12 21:27

Strat
 2004-03-24 02:35
#80946 #80946
User since
2003-08-04
5246 Artikel
ModeratorIn
[Homepage] [default_avatar]
[quote=pq,14.03.2004, 03:27][quote=esskar,13.03.2004, 22:02]
Code: (dl )
1
2
%hash = (a => 'A', b => 'B');
%hash = (%hash, c => 'C', d => 'D');
[/quote]
das kann bei sehr grossen hashes eventuell ungünstig sein, da hier der gesamte
inhalt umkopiert wird.[/quote]
oder mit slices, da duerfte wohl nichts umkopiert werden...
Code: (dl )
1
2
my %hash = (a => 'A', b => 'B');
@hash{qw(c d e f)} = qw(C D E F);
perl -le "s::*erlco'unaty.'.dk':e,y;*kn:ai;penmic;;print"
http://www.fabiani.net/

View full thread array im hash