in reply to scoping/localizing of $_

for my $index (0..9){ $t[$_] += $data[$index][$_] for 0 .. 4; }

Update: fixed sigil for t (was @)


DWIM is Perl's answer to Gödel

Replies are listed 'Best First'.
Re^2: scoping/localizing of $_
by mojodaddy (Pilgrim) on Jul 06, 2007 at 02:52 UTC
    Beautiful, exactly what I was hoping for. Thank you!