I mention I do not want to create temporary file because what I am dealing with is a text (one of the elements in XML).
For example say I have an XML file "Filters.xml".
<filterobj>
<filter name="abc"/>
<filter name="cde"/>
</filterobj>
My requirement is to read this XML and do the following.
Convert 'abc' into 'abc.processID.TimeStamp'
Convert 'cde' into 'cde.ProcessID.TimeStamp'
Update the above XML file and Update another XML file which is referring to 'abc' and 'cde'.
So there is no temp file concept. I have to create unique names to use in the same file.
The problem now is I am using timestamp in seconds and there could be more than one name generated in the same second with same user provided name. So I asked for some input in creating better unique names and I asked Perl monger's comments on using milli seconds.
Thanks