Perl throws an error at the $$data++ line.my $data = 3; foo { my ($data) = @_; $$data++; }
I've looked at some sample Perl scripts that appear to operate this way.
I've looked over Common Causes for "Modification of a read-only value attempted" but it hasn't helped me.
Thanks!
In reply to Modifying passed-in variables by mike65535
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |