CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



pinky
Novice

Nov 22, 2011, 1:22 AM

Post #1 of 3 (4541 views)
Addition query in perl Can't Post

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

Post #2 of 3 (4519 views)
Re: [pinky] Addition query in perl [In reply to] Can't Post


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

Post #3 of 3 (4496 views)
Re: [BillKSmith] Addition query in perl [In reply to] Can't Post

Thanks Bill..
That really worked...

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives