Thread Seltsame "autovivication" mit "and"?
(4 answers)
Opened by toby at 2007-07-26 00:28
[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: ![]() ![]() |