Not a serious proposal, but another example of TIMTOWTDI:
You may create an array that holds an alias to $a as the second element and interpolate it into a string.
#!/usr/bin/perl use v5.16; use warnings; my $a = ''; local our @str; sub {*str = \@_}->('Hello', $a); $a = 'Kevin'; say "@str";
Greetings,
-jo
In reply to Re: Evaluate variable while using
by jo37
in thread Evaluate variable while using
by chickenman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |