Another solution would be to use something like File::Temp.
In reply to Re: unique file ID by marto in thread unique file ID by baxy77bax