in reply to How can we interpolate an expression??
... as a one-liner; nothing else here is new, other than escaping the variables to avoid interpolation.
C:\>perl -E "my $num1=3; my $num2=4; say \"The result of \$num1 * \$nu +m2 is: \" . $num1*$num2;" The result of $num1 * $num2 is: 12
|
---|
In Section
Seekers of Perl Wisdom