The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

File::Temp::VarOptions - Like File::Temp, but allowing to set options with variables

VERSION

This document describes version 0.001 of File::Temp::VarOptions (from Perl distribution File-Temp-VarOptions), released on 2021-04-15.

SYNOPSIS

 use File::Temp::VarOptions qw(tempfile tempdir);

 {
     local $File::Temp::VarOptions::SUFFIX = '.html';
     ($fh, $filename) = tempfile(); # use .html suffix
     ...
     ($fh, $filename) = tempfile('XXXXXXXX', SUFFIX=>''); # use empty suffix
 }
 ...
 ($fh, $filename) = tempfile(); # use empty suffi

EXPORTS

Same as File::Temp's.

VARIABLES

$TEMPLATE

$DIR

$SUFFIX

$OPEN

$TMPDIR

$EXLOCK

$CLEANUP

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/File-Temp-VarOptions.

SOURCE

Source repository is at https://github.com/perlancar/perl-File-Temp-VarOptions.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/perlancar/perl-File-Temp-VarOptions/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

SEE ALSO

A patch version of this functionality: File::Temp::Patch::VarOptions

File::Temp

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by perlancar@cpan.org.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.