File::Tempdir(3pm) - phpMan

Command: man perldoc info search(apropos)  


File::Tempdir(3pm)             User Contributed Perl Documentation             File::Tempdir(3pm)



NAME
       File::Tempdir

SYNOPSYS
           use File::Tempdir;

           {
               my $tmpdir = File::Tempdir->new()
               my $dir = $tmpdir->name;
           }
           # the directory has been trashed
           my $adir = 'any directory';
           {
               my $tmpdir = File::Tempdir->new($dir)
               my $dir = $tmpdir->name;
           }
           # the directory has not been trashed

DESCRIPTION
       This module provide an object interface to tempdir() from File::Temp.  This allow to
       destroy the temporary directory as soon you don't need it anymore using the magic
       DESTROY() function automatically call be perl when the object is no longer reference.

       If a value is passed to at object creation, it become only a container allowing to keep
       same code in your function.

FUNCTIONS
   new(@options)
       if @options is only one defined value, the directory is simply retain in memory and will
       not been trashed.

       Otherwise, @options are same than tempdir() from File::Temp.  Refer to File::Temp
       documentation to have options list.  In this case, the directory will be trashed.

   name
       Return the name of the directory handle by the object.

SEE ALSO
       In "tempdir" in File::Temp File::Path Directory::Scratch

AUTHOR
       Olivier Thauvin <nanardon AT nanardon.org>

URL
       http://nanardon.zarb.org/darcsweb/darcsweb.cgi?r=Tempdir

       darcs get http://nanardon.zarb.org/darcs/Tempdir

LICENSE AND COPYRIGHT
       This program is free software; you can redistribute it and/or modify it under the same
       terms as Perl itself.



perl v5.10.0                                2006-08-09                         File::Tempdir(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-24 04:03 @38.107.179.238 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!