the addition creates a scalar context for the right-hand side, in which@{$set_S[$s]} = @{$set_S[$s]} + $epsilons[$s];
To get what you want, write@{$set_S[$s]} = 1.
instead.@{$set_S[$s]} = $set_S[$s] + $epsilons[$s];
In reply to Re: Turning numbers to 1!
by jds17
in thread Turning numbers to 1!
by perlrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |