Tom Hughes

NAME

Apache::TempFile - Allocate temporary filenames for the duration of a request

SYNOPSIS

  use Apache::TempFile qw(tempname)
  my($name) = tempname();
  open(FILE,">$name");
  print FILE "Testing\n";
  close(FILE);

DESCRIPTION

This module provides names for temporary files and ensures that they are removed when the current request is completed.

FUNCTIONS

tempname

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");

AUTHOR

Tom Hughes, tom@compton.nu

SEE ALSO

Apache(3), mod_perl(3)




Hosting generously
sponsored by Bytemark