Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Humanized lists of numbers

by bikeNomad (Priest)
on Jun 23, 2001 at 07:29 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (7)
As of 2024-04-19 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found