in reply to Using localtime() as a unique identifier
perldoc -f localtime
You are using localtime in scalar context so you are going to have keys that look like Sat Jul 26 19:52:08 2003. It uses time if no time string is given.
Since it uses time, there is very likely a chance you will end up generating keys of the same name so you should check the existance before blindly assigning values. You may want to put the assignment in a loop which adds successive suffixes until a unique key exists.
Hope this helps - L~R
|
|---|