VCP::RefCountedFile(3pm)

VCP::RefCountedFile3pm

An object that deletes a named file when nothing refers to it any more.

Usage

   use VCP::RefCountedFile;
   {
      my $fn = VCP::RefCountedFile->new( "/path/to/name" );
      print $fn;
   }  ## "name" is deleted here.

Overview

An object that mimics a string, but which refers to a file and deletes the file when the last reference to the file via such objects disappears.

Subclassing

This class is a bless scalar.

Releases

2 releases since Debian 3.1 (Sarge); the text changed 1 time.

  1. 3.1
  2. 4.0

Author

Barrie Slaymaker <[email protected]>

From libvcp-perl 0.9-20050110-1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.