"Say" will add a \n to a simple string. More complex things require "print" or "printf".my $number = 5; my $multiplier = 3; # Use print instead of "say" print "Product is ", $number * $multiplier, "\n"; #this does not work... #"say" has limitations... say "Product is ", $number * $multiplier; __END__ Product is 15
In reply to Re^3: How can we interpolate an expression??
by Marshall
in thread How can we interpolate an expression??
by Rohit Jain
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |