Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by sleepingsquirrel (Chaplain)
on Jan 27, 2005 at 19:53 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2024-04-23 14:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found