---
name: "FileCache"
section: "3pm"
platform: "linux"
package: "perl-5.004-doc"
version: "5.004.05-6"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/FileCache/3pm"
---

# FileCache(3pm)

keep more files open than the system permits

## NAME

FileCache - keep more files open than the system permits

## SYNOPSIS

```
    cacheout $path;
    print $path @data;
```

## DESCRIPTION

The `cacheout` function will make sure that there's a filehandle open for writing available as the pathname you give it.  It automatically closes and re-opens files if you exceed your system file descriptor maximum.

## BUGS

*sys/param.h* lies with its `NOFILE` define on some systems, so you may have to set `$FileCache::cacheout_maxopen` yourself.
