We don't bite newbies here... much | |
PerlMonks |
Re: TIMTOWTDI Challenge: Create a filenameby xdg (Monsignor) |
on Jan 09, 2009 at 05:13 UTC ( [id://735081]=note: print w/replies, xml ) | Need Help?? |
Assuming a quick-and-dirty temporary filename is desired:
Or pick a large random number of your choice. Plus if you need to generate the *same* temporary filenames on successive runs, you can set the seed for rand() ahead of time. Similar in nature, but random alphanumerics, not unlike what File::Temp does internally:
-xdg Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
In Section
Meditations
|
|