Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Humanized lists of numbers

by bikeNomad (Priest)
on Jun 23, 2001 at 07:29 UTC ( #90924=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    
    print join(", ", human(1..12, 14..21, 'aa'..'af', 'zz'..'aaf')), "\n";
    print join(", ", human(1, 2, 3, 5, 7, 8, 9, 11, 14)), "\n";
    
  2. or download this
    1-12, 14-21, aa-af, zz-aaf
    1-3, 5, 7-9, 11, 14
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-03-22 13:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?