in reply to Re^2: How can we interpolate an expression??
in thread How can we interpolate an expression??
Kenosis below has given you a way to be clever, but this is all getting a little clever for my taste. For complex output, I usually prefer going all the way to printf since, after all, you desire a formatted print. So maybe printf "number is %d\n", $number * $multiplier;. toolic's solution still strikes me as pretty clean as well.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How can we interpolate an expression??
by Rohit Jain (Sexton) on Sep 20, 2012 at 18:39 UTC |