[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] arithmetic within a string?



$do = 3.4*5.6;
print "3.4*5.6 = $do\n"; # gives 3.4*5.6 = 19.04
****************

	Am I correct that there is no way to have the arithmetic occur
within the string?

For example

print "3.4*5.6 = `3.4*5.6`\n"; # gives 3.4*5.6 = `3.4*5.6`---Not = 19.04.

	Paul

--
Paul Schatz
Chem Dept
University of Virginia

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org