... 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 reply to Re: How can we interpolate an expression??
by ww
in thread How can we interpolate an expression??
by Rohit Jain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |