GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
File::Tempdir(3) User Contributed Perl Documentation File::Tempdir(3)

File::Tempdir

    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

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.

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.

Return the name of the directory handle by the object.

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

Olivier Thauvin <nanardon@nanardon.zarb.org>

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

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

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2006-08-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.