Thread map in map (4 answers)
Opened by roooot at 2010-02-09 17:18

pq
 2010-02-09 17:37
#132438 #132438
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
dann halt so:
Code (perl): (dl )
1
2
3
4
5
6
NEWS_LINKS  => [ map {
    +{
        NEWS_LINKS_LINK => $links{$_},
        NEWS_LINKS_TEXT => $_,
    }
} keys %links ]
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 map in map