Thread map (3 answers)
Opened by guest_II at 2009-03-12 16:57

Gast guest_II
 2009-03-12 16:57
#119241 #119241
Hi!

Warum machen diese zwei Codeteile nicht gleiche?


Code (perl): (dl )
1
2
3
for ( @objects ) {
        push( @array, $_ ) if ! $hash{$_};
}


Code (perl): (dl )
@array = map { $_ if ! $hash{$_} } @objects;

View full thread map