perlquestion
Rohit Jain
I want to use an expression in the print statement itself, without having to store the result in a temp variable..
Something like the below code: -
<code>
use v5.14;
my $number = 5;
my $multiplier = 3;
# I tried the below code.. But niether is working..
say "Product is $number * $multiplier";
say "Product is {$number * $multiplier}";
</code>
How do we exactly do this in Perl??