Re: evaluating expressions in here documents

2002-10-09 Thread Jenda Krynicky
From: Jim Ockers <[EMAIL PROTECTED]> > Is there any concise method of fully evaluating the arithmetic > expressions in here documents, rather than just one level of > substitution?: > > sub RotationMatrix { > my $theta = $_[0] * 3.14159265 / 180.0; > my $m = cos($theta); > my $n = sin

Re: evaluating expressions in here documents

2002-10-08 Thread John W. Krahn
Jim Ockers wrote: > > Is there any concise method of fully evaluating the arithmetic > expressions in here documents, rather than just one level of > substitution?: > > sub RotationMatrix { > my $theta = $_[0] * 3.14159265 / 180.0; > my $m = cos($theta); > my $n = sin($theta); >

evaluating expressions in here documents

2002-10-08 Thread Jim Ockers
Is there any concise method of fully evaluating the arithmetic expressions in here documents, rather than just one level of substitution?: sub RotationMatrix { my $theta = $_[0] * 3.14159265 / 180.0; my $m = cos($theta); my $n = sin($theta); my $T = Math::MatrixReal->new_from_stri