17 Aug 2002 22:39:53 UTC
- Distribution: Apache-TempFile
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (10 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: unknown
- Activity24 month
- Download (1.99KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Apache::TempFile - Allocate temporary filenames for the duration of a request
use Apache::TempFile qw(tempname) my($name) = tempname(); open(FILE,">$name"); print FILE "Testing\n"; close(FILE);
This module provides names for temporary files and ensures that they are removed when the current request is completed.
This routine returns a unique temporary filename and arranges for that file to be removed when the current request is completed. If an extension is supplied as an argument that it will be appended to the filename which is generated.
my($name) = Apache::TempFile::tempname(); my($name) = Apache::TempFile::tempname("html");
Tom Hughes, email@example.com
Module Install Instructions
To install Apache::TempFile, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Apache::TempFile
For more information on module installation, please visit the detailed CPAN module installation guide.