cURL / Mailing Lists / curl-users / Single Mail

curl-users

perl addition problem

From: Siva <sivakumar_at_ceruleaninfotech.com>
Date: 09 Sep 2004 17:12:18 +0530

Hi,
    I have a doubt in Perl Addition concept.

    print (3+4)+7;
        Answer is : 7

    print 7+(3+4);
           Answer is : 14

Why? In what basis it is giving such output? Why it neglecting after
paranthesis value? When it is assigned to a variable it is working
properly... Could anyone please answer for this?

Thanks and Regards,

S.SivaKumar.
Bangalore.
India.
---------------
Received on 2004-09-09