you can just say$set_S[$r] = [$r];
and then$set_S[$r] = $r;
I don't see any reason to enclose $r on an anonymous array reference, at least in this context.print "$set_S[$s]\t$epsilons[$s]\t"; $set_S[$s] = $set_S[$s] + $epsilons[$s]; print $set_S[$s], "\n";
In reply to Re: Turning numbers to 1!
by alexm
in thread Turning numbers to 1!
by perlrocks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |