---
name: "VCP::RefCountedFile"
section: "3pm"
platform: "linux"
package: "libvcp-perl"
version: "0.9-20050110-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/VCP::RefCountedFile"
---

# VCP::RefCountedFile(3pm)

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\>
