Thread smartmatch (11 answers)
Opened by torsten at 2011-05-16 13:44

pq
 2011-05-16 15:11
#148687 #148687
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
aber wozu dereferenzieren? es reicht doch eine arrayref drumherum, oder? also [...] ~~ [...]
das macht ja der operator dann automatisch.

edit: also entsprechend deinem code
%old~~%new and [values %old] ~~ [@new{keys %old}]
Last edited: 2011-05-16 15:12:28 +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 smartmatch