The error is from attempting to modify $_[0] when the argument is a string literal, $rollup->(" ") rather than a variable $rollup->($dummy). The string literal is a constant, not an lvalue.
After Compline,
Zaxo
In reply to Re: Modification of read-only value error when using closure
by Zaxo
in thread Modification of read-only value error
by sk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |