On 12-03-08 03:06 PM, Steve Bertrand wrote:
You wanted to find out the numbers between the two. While playing
around, I found this:
perl -e 'printf "%X\n", $_ for ( 0x415a+1 .. 0x415f-1 )
...prints:
415B
415C
415D
415E
Yes the 0x notation is just another number. You can do anything with it
that you can do with an integer.
Example: perl -le'print $_ for (( 0x10 >> 4 ) .. ( 0x10 | 0x01 ) - 1 )'
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
It's Mutual Aid, not fierce competition, that's the dominate
force of evolution. Of course, anyone who has worked in
open source already knows this.
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/