Ein bischen Spaß muss sein: Quiz zu for

Begonnen von RichardCZ, 29 März 2020, 20:25:55

Vorheriges Thema - Nächstes Thema

RichardCZ

Holy Sh*t...

               my @a = split($ra{$attrName}{s}, $lval) ;
                for my $v (@a) {
                    my $v = $v; # resolve the reference to avoid changing @a itself


Da muss ich jetzt sehr lange nachdenken um zu verstehen was da geschieht.
Witty House Infrastructure Processor (WHIP) is a modern and
comprehensive full-stack smart home framework for the 21st century.

RichardCZ

CommandList

                for my $n (@arg[1..@arg-1]) {
                    my $n = $n; # Forum #53223, for some perl versions $n is a reference


No, not for some. For all.
Witty House Infrastructure Processor (WHIP) is a modern and
comprehensive full-stack smart home framework for the 21st century.