Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: Hex Question(s)

by TGI (Parson)
on Mar 27, 2008 at 16:51 UTC ( #676795=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\> test.pl
    Argument "0x2" isn't numeric in addition (+) at C:\test.pl line 9.
    Argument "0x28" isn't numeric in addition (+) at C:\test.pl line 9.
    0 0
    
  2. or download this
    my $this = sprintf("0x%x", 40);
    my $that = sprintf("0x%x", 2);
    ...
    my $other = eval "$this + $that";
    
    printf "$other %x\n", $other;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://676795]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2020-01-21 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?