"Rivera, Claudia" wrote:
>
> I am trying the following:
>
> Lets say the $formula="a+b"
>
> Now I am doing a substitution so that: $formula="$data_a[$i]+$data_b[$i]"
>
> But now I want to get the actual results of this as float and int's.
>
> for ($i=0; $i<@$length_of_arrays; $i++){
> $my_num=$formula;
> }
>
> Rigth now I am getting the formula as a string. I want to get the result.
for (my $i = 0; $i < @$length_of_arrays; $i++){
$my_num = $data_a[$i] + $data_b[$i];
}
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.wgn.net/~dbe/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users