Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^3: Fast - Compact That String

by BrowserUk (Patriarch)
on Feb 10, 2012 at 20:06 UTC ( [id://953120]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    ## Map the numbers, 0 .. 36 to the symbols we use 
    ## to represent the number in base37
    ...
        ## return the accumulated value.
        $n;
    }
    
  2. or download this
    my @c1 = (' ', '0'..'9', 'A'..'Z' );
    sub fromB37 {
    ...
        $n = $n * 37 + $c2[$_] for unpack 'C*', $_[0];
        $n;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found