Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Extracting full digits from a range

by johngg (Abbot)
on Aug 03, 2012 at 22:02 UTC ( #985360=note: print w/ replies, xml ) Need Help??


in reply to Extracting full digits from a range

Another variation using an on-the-fly subroutine.

knoppix@Microknoppix:~$ perl -Mstrict -Mwarnings -E ' > say join q{,}, > map { sprintf q{%X}, $_ } > sub { hex $_[ 0 ] .. hex $_[ 1 ] }-> > ( split m{:}, q{293F:2945} );' 293F,2940,2941,2942,2943,2944,2945 knoppix@Microknoppix:~$

Cheers,

JohnGG


Comment on Re: Extracting full digits from a range
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2014-12-25 16:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls