Thread mehrere Zahlen vergleichn mit Häufigkeit
(5 answers)
Opened by Gast at 2007-01-25 19:04
effizienter wäre statt
my @treffer = grep{index($_,$check) == 5}@isbns; my @treffer = grep { substr($_, 5, 4) eq $check } @isbns; und statt @isbns = map{$_ =~ s/-//g;$_}@isbns; tr/-//d for @isbns; 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: ![]() ![]() |