Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Syntactic Confectionery Delight
 
PerlMonks  

Re: Alpha base-26 to base-10...

by Limbic~Region (Chancellor)
on Jun 30, 2003 at 23:15 UTC ( #270359=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;
    ...
        $base_10 += ((ord($values[$_]) - 96) * 26 ** $_) for (0 .. $#value
    +s);
        $base_10;
    }
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        }
        $base_10;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2014-04-20 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls