Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985360]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2017-12-11 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (286 votes). Check out past polls.

    Notices?