Let's make this easier here's an example of what it should look like in the
end:


my @crap = qw(45 / 3 + 6 - 4 * 2);
my $ans = eval( "@crap" );
print "$ans\n"; ## prints 13;



> -----Original Message-----
> From: Jackson, Harry [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 10:23 AM
> To: '[EMAIL PROTECTED]'
> Subject: Scalar context problem I think
> 
> 
> Hi
> 
> If I have the following variables splits are numbers and totals are
> operators how can I have them executed to get the value.
> 
> $split[0] $total[0] $split[1] $total[1] $split[2] $total[2] $split[3]
> $total[3] $split[4];
>   45           \           3           +             6         -
> 4           *           2
> 
> 
> Harry
> 
> 
> **************************************************************
> ***********************
> COLT Telecommunications
> Registered in England No. 2452736
> Registered Office: Bishopsgate Court, 4 Norton Folgate, London E1 6DQ
> Tel. +44 20 7390 3900
> 
> This message is subject to and does not create or vary any contractual
> relationship between COLT Telecommunications, its subsidiaries or 
> affiliates ("COLT") and you. Internet communications are not secure
> and therefore COLT does not accept legal responsibility for the
> contents of this message.  Any view or opinions expressed are those of
> the author. The message is intended for the addressee only and its
> contents and any attached files are strictly confidential. If you have
> received it in error, please telephone the number above. Thank you.
> **************************************************************
> ***********************
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to