Doctrin has asked for the wisdom of the Perl Monks concerning the following question:
So, is there a way to make $g change as $r changes? Thanks in advance.my $r = 300; my $g = 'g' . $r; print "$g\n"; #would be 'g300', that's ok $r = 500; print "$g\n"; #would be 'g300', but wanted 'g500'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by kcott (Archbishop) on Jul 04, 2013 at 09:11 UTC | |
|
Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? sub
by Anonymous Monk on Jul 04, 2013 at 08:57 UTC | |
|
Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by hdb (Monsignor) on Jul 04, 2013 at 09:50 UTC | |
|
Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by rjt (Curate) on Jul 04, 2013 at 13:19 UTC | |
|
Re: if $a = 'some' . $b, and $b then changes, how to make $a change too? See inside.
by jwkrahn (Abbot) on Jul 04, 2013 at 18:02 UTC |