G'day Doctrin,
It sounds you want code like this which uses references:
$ perl -Mstrict -Mwarnings -E ' my $r = 300; my $r_ref = \$r; my $g = "g"; say $g . $$r_ref; $r = 500; say $g . $$r_ref; ' g300 g500
See perlreftut (a short tutorial) and perlref (the details).
-- Ken
In reply to Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by kcott
in thread if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by Doctrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |