in reply to Re^6: Executing functions from another process
in thread Executing functions from another process
The problem happens on the last line which errors out with Modification of a read-only value. Why is this the case?use warnings; use strict; use Data::Dump qw(dump); my $a = "one"; my $b = "two"; my $c = \$b; my @d = ($a, $b, $c); my $str = dump(@d); # ("one", "two", \"two") my @newD = eval $str; $newD[0] = "A"; $newD[1] = "B"; ${$newD[2]} = "C";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Executing functions from another process
by BrowserUk (Patriarch) on Jan 24, 2014 at 15:37 UTC | |
by gri6507 (Deacon) on Jan 24, 2014 at 15:46 UTC | |
by BrowserUk (Patriarch) on Jan 24, 2014 at 16:29 UTC | |
by Corion (Patriarch) on Jan 24, 2014 at 16:41 UTC | |
by BrowserUk (Patriarch) on Jan 24, 2014 at 18:04 UTC |