Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Perl : How to Create Unique String/Number?

by sleepingsquirrel (Hermit)
on Jan 27, 2005 at 19:53 UTC ( #425729=note: print w/ replies, xml ) Need Help??


in reply to Perl : How to Create Unique String/Number?

Might not be exactly what you're looking for, but maybe a place to start.

#!/usr/bin/perl -w $len = 11 + int(rand(10)); $r .= chr(48 + rand(74)) for (1..$len); $r =~ s/\W//g; print "$r\n";


-- All code is 100% tested and functional unless otherwise noted.


Comment on Re: Perl : How to Create Unique String/Number?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (14)
As of 2014-12-19 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (90 votes), past polls