File::MkTemp - Make temporary filename from template
use File::MkTemp; mktemp(tempXXXXXX,[dir]); $string = mktemp(tempXXXXXX,[dir]); open(F,$string);
The MkTemp module provides the function mktemp() which returns a unique string which you can use to make unique files or directories with. It is based on the mktemp function found in c.
The mktemp function takes one or two parameters. The first param is a template with at least 6 uppercase letter X at the end of the string. The second optional param is the directory in which to test for duplicates.
File::MkTemp was written by Travis Gummels. Please send bug reports and or comments to: travis.gummels@usa.net
Copyright 1999, Travis Gummels. All rights reserved. This may be used and modified however you want. If you redistribute after making modifications please note modifications you made somewhere in the distribution.
To install File::MkTemp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::MkTemp
CPAN shell
perl -MCPAN -e shell install File::MkTemp
For more information on module installation, please visit the detailed CPAN module installation guide.