Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: Subtract 2 hexadecimal numbers

by ww (Bishop)
on Feb 20, 2014 at 21:52 UTC ( #1075655=note: print w/replies, xml ) Need Help??

in reply to Subtract 2 hexadecimal numbers

or, as a simplification & TIMTOWTDI:
perl -E "my $foo = (0x0f-0x0e); say $foo;" 1 perl -E "my $foo = (0x10f-0x0e); say $foo;" 257 perl -E "my $foo = (0x10f-0x01); say $foo;" 270

Where the remaining conversion is left as an exercise to the author of the ill-formatted, gimmé question which I have downvoted for laziness (of a non-Perlish character) and failure to read the directions on formatting.

This section of the Monastery is known as is "Seekers of Perl Wisdom" ...not "Spare me the need to think or to read documentation, tuts, etc." SMTNTTOTRD,T,E is a very unwieldy and ugly title... and not what this site is about.

In addition to following toolic's fine suggestion about honoring the local markup scheme, you may wish to read On asking for help and How do I post a question effectively?.

If you didn't program your executable by toggling in binary, it wasn't really programming!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2016-10-29 00:21 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (387 votes). Check out past polls.