Closed Thread
Results 1 to 4 of 4

Thread: alpha-num numbering scheme in perl

  1. #1
    cppxuser is offline Newbie
    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Question alpha-num numbering scheme in perl

    Hi,
    Does anyone know how to get the alpha-numeric numbering scheme in perl ?
    For example the
    numberic => 0,1,2,...9,10,11,12,...99,100,... # $x = 0;$x++;
    lower-alpha => a,b,c,...z,aa,ab,ac,...zz,aaa,... # $x = "a";$x++;
    upper-alpha => A,B,C,..,Z,AA,AB,AC,...ZZ,AAA,... # $x = "A";$x++;
    lower-alpha-num => a,b,c,...z,0,1,2,3,...9,aa,ab,ac,...zz,10,11,12,.. .99,aaa,... # ?
    upper-alpha-num => A,B,C,..,Z,0,1,2,3,...9,AA,AB,AC,...ZZ,10,11,12,.. .99,AAA,... # ?

    cvv3 at yahoo dot com

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

    Re: alpha-num numbering scheme in perl

    numberic is easy
    lower-alpha should also be easy
    upper-alpha should also be easy

    lower/upper-alpha-num may require an embedded loop as perl has no built in range for something like that but maybe someone else knows of a simple (or not so simple) method to get exotic ranges like those. There could also be a module(s) listed on CPAN.

  4. #3
    kiddies is offline Programmer
    Join Date
    May 2009
    Posts
    129
    Rep Power
    0

    Re: alpha-num numbering scheme in perl

    how to use CPAN in perl...

  5. #4
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0

    Re: alpha-num numbering scheme in perl

    Quote Originally Posted by kiddies View Post
    how to use CPAN in perl...
    start new threads when you have a question. You don't use CPAN in perl, well, at least not how I think you think so. CPAN is where you get modules from to use in your perl programs.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Scheme Vs Perl
    By restin84 in forum General Programming
    Replies: 1
    Last Post: 11-18-2010, 03:53 AM
  2. Scheme Newbie - Interpreting Scheme for "INSERT" function
    By rheb2k in forum General Programming
    Replies: 0
    Last Post: 05-14-2009, 03:15 PM
  3. Numbering System
    By Muffin in forum C and C++
    Replies: 3
    Last Post: 08-21-2008, 08:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts