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

pq
 2010-08-08 01:15
#140454 #140454
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
oder als ansatz fuer golfer:
Code (perl): (dl )
1
2
my @list = $loeschen .. keys %test;
(undef, @test{ @list[0 .. $#list-1] }) = delete @test{@list};
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