Hi, folks
Is it possible to define a variable in some way within Perl that it reflects the value of a second variable without having to redeclare the first?
Something like this, maybe:
$xyz = "variable is $abc.\n";
$abc = 5;
print $xyz;
$abc = 10;
print $xyz;
Output:
variable is 5.
variable is 10.
Is it a reference that I'm reaching for?