Thread Key im Hash ändern (4 answers)
Opened by bianca at 2010-08-07 16:54

pq
 2010-08-08 00:53
#140452 #140452
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
Code (perl): (dl )
1
2
3
4
5
my @list = $loesche .. keys %test;
my @save = delete @test{@list};
pop @list;
shift @save;
@test{@list} = @save;


edit: verkuerzt
Last edited: 2010-08-08 01:02:09 +0200 (CEST)
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Key im Hash ändern