develooper Front page | perl.beginners | Postings from April 2012

Question on the function - hex

Thread Next
From:
Parag Kalra
Date:
April 12, 2012 13:35
Subject:
Question on the function - hex
Message ID:
CADSDpOC6PeCNeAJSag=XE5D0w5E597cBdjaL-B4tGhhdO=rANg@mail.gmail.com
Why does the output of
perl -e "print hex '0x00001600000402'"

differs from the output of
perl -e "print hex 0x00001600000402"

EG:
bash-3.2$ perl -e "print hex '0x00001600000402'"
94489281538

$ perl -e "print hex 0x00001600000402"
10189963531576


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About