Thread Seltsame "autovivication" mit "and"? (4 answers)
Opened by toby at 2007-07-26 00:28

pq
 2007-07-26 11:39
#78915 #78915
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=jubei,26.07.2007, 00:27]autovivification ist richtig xD

da die hash werte $blah{$lauf} nur implizit ueber die inkrementationen erzeugt werden, denk ich schon, dass man hier von autovivification sprechen kann. hab jetzt aber wiederum auch nicht die _exakte_ definition von auto-dings-bums im kopp...[/quote]
nein, du greifst direkt auf $bla{$lauf} zu.
autovivification ist
$array[$x]->{"foo"}->[0] = "January";
wenn $array[$x]->{"foo"} vorher nicht definiert war.
perlref
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 Seltsame "autovivication" mit "and"?