in reply to Re^2: Need to Generate Unique Stringin thread Need to Generate Unique String
Or use a counter:
{ my $cnt = 0; sub unique { return $time() . $$ . $cnt++; } } $unique = unique(); [download]