Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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: (3)
As of 2023-02-05 19:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer not to run the latest version of Perl because:







    Results (32 votes). Check out past polls.

    Notices?