Make temporary filename from template
The MkTemp module provides three functions mktemp() mkstemp() and
mkstempt().
The function mktemp() returns a unique string based upon the template. The
template must contain at least six trailing Xs. The Xs are replaced by a
unique string and the template is returned. The unique string is made from
picking random elements out of a 52 alpha character array ([a-z][A-Z]). A
directory can be specified in which to test for duplicates of the string.
The function mkstemp() does the same as mktemp() except it returns an open
file handle. This prevents any possibility of opening up an identical file.
The function requires that the directory be specified.
The function mkstempt() does the same as mkstemp() except it returns the
name of the template in addition to the file handle.
- Sources inherited from project devel:languages:perl
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/perl-File-MkTemp && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
File-MkTemp-1.0.6.tar.gz | 0000005105 4.99 KB | |
perl-File-MkTemp.changes | 0000000150 150 Bytes | |
perl-File-MkTemp.spec | 0000002446 2.39 KB |
Latest Revision
- initial package 1.0.6
Comments 0