in reply to Turning numbers to 1!
In the line
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];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Turning numbers to 1!
by alexm (Chaplain) on Jul 03, 2008 at 20:56 UTC | |
by jds17 (Pilgrim) on Jul 03, 2008 at 21:55 UTC |
In Section
Seekers of Perl Wisdom