split returns a list. Adding a list to a scalar does not really make sense in this context. Maybe you want a loop?
my @items = qw(1 2 3 4 5 6); my $val = 10; $val += $_ for @items;
In reply to Re^3: Finding the sum of individual columns
by Corion
in thread Finding the sum of individual columns
by thillai_selvan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |