OpenBSD::MkTemp(3p) Perl Programmers Reference Guide OpenBSD::MkTemp(3p)
OpenBSD::MkTemp(3p) Perl Programmers Reference Guide OpenBSD::MkTemp(3p) # OpenBSD::MkTemp(3p) Perl Programmers Reference Guide OpenBSD::MkTemp(3p) NNAAMMEE # OpenBSD::MkTemp - Perl access to mkstemps() and mkdtemp() SSYYNNOOPPSSIISS # use OpenBSD::MkTemp; my($fh, $file) = mkstemp("/tmp/fooXXXXXXXXXX"); use OpenBSD::MkTemp qw(mkdtemp mkstemps); my $dir_name = mkdtemp("/tmp/dirXXXXXXXXXX"); my ($fh, $file) = mkstemps("/tmp/fileXXXXXXXXXX", ".tmp"); DDEESSCCRRIIPPTTIIOONN # This module provides routines for creating files and directories with guaranteed unique names, using the C mmkksstteemmppss(()) and mmkkddtteemmpp(()) routines. mmkksstteemmpp(()) and mmkksstteemmppss(()) must be called with a template argument that is writable, so that they can update it with the path of the generated file. ...