Thread An key bei values Schleife
(34 answers)
Opened by bianca at 2010-04-14 12:07 2010-04-14T10:51:04 bianca so, und jetzt sag mir, warum folgendes nicht lohnt, wie du ja in einer antwort an mich behauptest hast: Code (perl): (dl
)
1 2 3 4 5 grep { my $field = split /\|/,$user{$_}; $field && defined $foo{ $field }; } keys %user aber warum im gegensatz dazu es lohnt, das ganze in ein array abzuspeichern. interessiert mich wirklich. 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: ![]() ![]() |