Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Determining uniqueness in a string.

by kiat (Vicar)
on Oct 02, 2005 at 06:41 UTC ( #496727=note: print w/replies, xml ) Need Help??


in reply to Re: Determining uniqueness in a string.
in thread Determining uniqueness in a string.

Wow.

Not quite sure how it works. Is it doing something like the code below?:

uniq ( '192345810' ) == 1 ? print "1\n" : print "0\n"; sub uniq { ($result) = ($_[0] =~ m[((.).*\2)]); print "result: $result; captured: $1\n"; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://496727]
help
Chatterbox?
[marto]: Corion Depeche mode were great last night
[Corion]: marto: Whooo! ;) That gives me hope for the large-stadium experience ;)

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-03-27 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (319 votes). Check out past polls.