Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
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 chanting in the Monastery: (12)
As of 2014-09-30 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (380 votes), past polls