related to question: How do I substitute with an evaluated expression in Perl?
In Perl, is there a way like in Ruby to do:
$a = 1;
print "#{$a + 1}";
and it can print out 2?
related to question: How do I substitute with an evaluated expression in Perl?
In Perl, is there a way like in Ruby to do:
$a = 1;
print "#{$a + 1}";
and it can print out 2?