Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: number of unique characters in a string

by hgolan30 (Initiate)
on Mar 01, 2003 at 10:33 UTC ( [id://239680]=note: print w/replies, xml ) Need Help??


in reply to number of unique characters in a string

use Data::Dumper; my $number=1234567812; my @tmp=split('',$number); my %count; foreach(@tmp){ $count{$_}=$count{$_}+1; } print Dumper \%count;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found