man VCP::RefCountedFile () - An object that deletes a named file when nothing refers to it any more.

NAME

VCP::RefCountedFile - An object that deletes a named file when nothing refers to it any more.

SYNOPSIS

   use VCP::RefCountedFile;

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

DESCRIPTION

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.

COPYRIGHT

Copyright 2000, Perforce Software, Inc. All Rights Reserved.

This module and the VCP package are licensed according to the terms given in the file LICENSE accompanying this distribution, a copy of which is included in vcp.

AUTHOR

Barrie Slaymaker <barries@slaysys.com>