|
|
|||
Adding sub/superscriptions to a Perl/Tk program
How can I write for example m/sec2 in a Perl/Tk program?
2 Replies
The CARAT (^) is used for exponentiation just as the SLANT (/) is used for divide. So I would assume that in your program, 'm' and 'sec' are variables and you could write the expression like:
$some_val = $m / ($sec^2); You will also probably require a math module and should refer to CPAN.org fopr that
Comment by
brian_d_foy
: Jul 08 2010 06:10 PM
In which sort of widget do you want to show a superscript?
--
brian d foy Author of Learning Perl, Intermediate Perl, and Mastering Perl http://www.oreillynet.com/pub/au/1071 |
|||
|