Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-03-26 02:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.