Thread Variabler Variablenname (21 answers)
Opened by Gast at 2008-08-22 14:46

pq
 2009-04-29 19:05
#121026 #121026
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
2009-04-29T16:11:53 LanX-
Code (perl): (dl )
@file_3_[$i]
ist gleichbedeutend zu
Code (perl): (dl )
@{file_3_} [$i]

nee, das zweite wird von perl als ${file_3_} [$i] interpretiert.
Quote
was aber ein Hashslice ist!

ein hashalice sieht so aus: @hash{"foo", "bar"}
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 Variabler Variablenname