Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re^3: Queuing system for running a perl program

by hippo (Monsignor)
on May 08, 2014 at 12:54 UTC ( #1085461=note: print w/replies, xml ) Need Help??

in reply to Re^2: Queuing system for running a perl program
in thread Queuing system for running a perl program

What I am thinking to do is have a random-string generator subroutine, so that the files generated for each user are separated from those of the others. Sound reasonable approach?

It may seem like that now, but don't do this. Sooner or later the generator will repeat one of the random strings and then the trouble begins. Better to use a truly unique identifier (which could be as simple as an incrementing integer).

  • Comment on Re^3: Queuing system for running a perl program

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085461]
[LanX]: fun, last time I was in Britain people had problems with my name, just rarely they said "like the children TV star Rolf Harris?", this time most replied instantly "Rolf? like the pedophile Rolf Harris" ?
LanX is perlophile
[ambrus]: Corion: read https://metacpan. org/pod/release/ MLEHMANN/AnyEvent- 7.13/lib/AnyEvent. pm#SUPPLYING-YOUR- OWN-EVENT-MODEL- INTERFACE in that case

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-12-08 12:03 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (141 votes). Check out past polls.