Acme-CPANLists-PERLANCAR
view release on metacpan or search on metacpan
"Mouse" : "0",
"O" : "0",
"Object::ArrayType::New" : "0",
"Object::Declare" : "0",
"Object::New" : "0",
"Object::Tiny" : "0",
"OrePAN" : "0",
"OrePAN2" : "0",
"P" : "0",
"PERLANCAR::Module::List" : "0",
"Passwd::Unix::Alt" : "0",
"PerlX::Assert" : "0",
"Pinto" : "0",
"String::Tools" : "0",
"Text::UpsideDown" : "0",
"U" : "0",
"Umask::Local" : "0",
"Unix::Passwd::File" : "0",
"V" : "0",
"WorePAN" : "0",
"c" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=Acme-CPANLists-PERLANCAR"
lib/Acme/CPANLists/PERLANCAR/Retired.pm view on Meta::CPAN
just printing `ARRAY(0x22f8160)` or something like that.
Superseded by <pm:Devel::Confess>, which can do color
(<pm:Carp::Always::Color>), dumps (<pm:Carp::Always::Dump>), as well as a few
other tricks, all in a single package.
_
alternate_modules => ['Devel::Confess'],
},
{
module => 'Passwd::Unix::Alt',
description => <<'_',
I first wrote <pm:Passwd::Unix::Alt> (a fork of <pm:Passwd::Unix>) to support
shadow passwd/group files, but later abandoned this fork due to a couple of
fundamental issues and later wrote a clean-slate attempt
<pm:Unix::Passwd::File>.
_
alternate_modules => ['Unix::Passwd::File'],
},
{
module => 'Module::List::WithPath',
description => <<'_',
Superseded by <pm:PERLANCAR::Module::List>.
_
alternate_modules => ['PERLANCAR::Module::List'],
},
lib/Acme/CPANLists/PERLANCAR/Retired.pm view on Meta::CPAN
This module is like L<Carp::Always>, but dumps complex arguments instead of
just printing C<ARRAY(0x22f8160)> or something like that.
Superseded by L<Devel::Confess>, which can do color
(L<Carp::Always::Color>), dumps (L<Carp::Always::Dump>), as well as a few
other tricks, all in a single package.
Alternate modules: L<Devel::Confess>
=item * L<Passwd::Unix::Alt>
I first wrote L<Passwd::Unix::Alt> (a fork of L<Passwd::Unix>) to support
shadow passwd/group files, but later abandoned this fork due to a couple of
fundamental issues and later wrote a clean-slate attempt
L<Unix::Passwd::File>.
Alternate modules: L<Unix::Passwd::File>
=item * L<Module::List::WithPath>
Superseded by L<PERLANCAR::Module::List>.
Alternate modules: L<PERLANCAR::Module::List>
=item * L<App::CreateSparseFile>
lib/Acme/CPANLists/PERLANCAR/Task/GettingTempDir.pm view on Meta::CPAN
package Acme::CPANLists::PERLANCAR::Task::GettingTempDir;
our $DATE = '2017-09-08'; # DATE
our $VERSION = '0.26'; # VERSION
our @Module_Lists = (
{
summary => 'Getting system-wide temporary directory in a portable way',
description => <<'_',
There's the good ol' <pm:File::Spec> which has a `tmpdir` function. On Unix it
looks at `TMPDIR` environment variable before falling back to `/tmp`.
<pm:File::Temp> uses this for its `tempdir` when a template is not specified.
Then there's <pm:File::Util::Tempdir> which tries a little harder. On Unix, its
`get_tempdir` will look at `TMPDIR`, then also `TEMPDIR`, `TMP`, `TEMP`. If none
of those are set, it will return the first existing directory from the list:
`/tmp`, `/var/tmp`. If everything fails, will die.
_
tags => ['task'],
entries => [
{
module=>'File::Spec',
},
lib/Acme/CPANLists/PERLANCAR/Task/GettingTempDir.pm view on Meta::CPAN
Acme::CPANLists::PERLANCAR::Task::GettingTempDir - Getting system-wide temporary directory in a portable way
=head1 VERSION
This document describes version 0.26 of Acme::CPANLists::PERLANCAR::Task::GettingTempDir (from Perl distribution Acme-CPANLists-PERLANCAR), released on 2017-09-08.
=head1 MODULE LISTS
=head2 Getting system-wide temporary directory in a portable way
There's the good ol' L<File::Spec> which has a C<tmpdir> function. On Unix it
looks at C<TMPDIR> environment variable before falling back to C</tmp>.
L<File::Temp> uses this for its C<tempdir> when a template is not specified.
Then there's L<File::Util::Tempdir> which tries a little harder. On Unix, its
C<get_tempdir> will look at C<TMPDIR>, then also C<TEMPDIR>, C<TMP>, C<TEMP>. If none
of those are set, it will return the first existing directory from the list:
C</tmp>, C</var/tmp>. If everything fails, will die.
=over
=item * L<File::Spec>
=item * L<File::Util::Tempdir>
( run in 1.854 second using v1.01-cache-2.11-cpan-df04353d9ac )