Home: Perl Programming Help: Advanced:
Addition query in perl



pinky
Novice

Nov 22, 2011, 1:22 AM


Views: 8351
Addition query in perl

Hi,



Very quick question.., How can i add these two in perl



0x8 and 0xF8800000



Thanks

Pinky,


BillKSmith
Veteran

Nov 22, 2011, 12:03 PM


Views: 8329
Re: [pinky] Addition query in perl


Code
  

perl -e" printf '%lx', 0x8 + 0xF8800000"



This works in the windows command window. For some operating systems, you must reverse the single and double quotes.
Good Luck,
Bill


pinky
Novice

Nov 23, 2011, 3:12 AM


Views: 8306
Re: [BillKSmith] Addition query in perl

Thanks Bill..
That really worked...