Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: incrementing mixed letters and numbers

by shmem (Chancellor)
on Aug 22, 2017 at 08:36 UTC ( [id://1197790]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;
    my @chars     = (0..9,'A'..'Z','a'..'z',map{chr$_}32..47,58..64,91..96
    +);
    ...
        $num = $num * $base + $hash{$_} for $str =~ /./g;
        $num;
    }
    
  2. or download this
    my $number = decode_base 36, 1009;
    say lc encode_base 36, $number++ for 0..36;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-24 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found