Acme-CPANModulesBundle-PERLANCAR
view release on metacpan or search on metacpan
lib/Acme/CPANModules/PERLANCAR/Avoided.pm view on Meta::CPAN
{
module => 'Log::Any::IfLOG',
summary => 'Retired workaround',
alternate_modules => ['Log::ger'],
},
{
module => 'File::Flock',
summary => 'Too many deps',
description => <<'_',
I used to use <pm:File::Flock> due to its simple interface. However, this module
depends on things like <pm:AnyEvent>, <pm:Data::Structure::Util>,
<pm:File::Slurp>, et al, all of which seem unnecessary. Nowadays I'm opting to
use <pm:File::Flock::Retry>, or just plain `flock()`.
_
alternate_modules => ['File::Flock::Retry'],
},
{
module => 'File::Slurp',
summary => 'Not encoding-friendly',
description => <<'_',
File::Slurp was created (1996) before Perl IO layers (5.8, 2002) and its API
does not handle encoding properly. See:
<http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html>
or discussion on RT.
_
alternate_modules => ['File::Slurper'],
},
{
module => 'File::Slurp::Tiny',
summary => 'Discouraged by the author',
description => <<'_',
The author of File::Slurp::Tiny has discouraged its use and recommends his newer
module <pm:File::Slurper>.
_
alternate_modules => ['File::Slurper'],
},
{
module => 'Exporter::Lite',
summary => 'Unnecessary, use Exporter instead',
description => <<'_',
I used to use this module because I didn't know that <pm:Exporter> (since perl
5.8.3, 2004) can also be used without subclassing, i.e. instead of:
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = (...);
you can also use it like this:
use Exporter qw(import);
our @EXPORT = (...);
Hence, this module (first released in 2001) is no longer necessary. Besides,
this module has a worse startup overhead than <pm:Exporter> *and* has less
features. So there is absolutely no reason to use it.
_
alternate_modules => ['Exporter'],
},
{
module => 'JSON',
summary => 'Somewhat broken',
description => <<'_',
JSON.pm is a discouraged module now, due to its somewhat broken backend handling
and lack of support for <pm:Cpanel::JSON::XS>. Consider switching to
<pm:JSON::MaybeXS> or perhaps just <pm:JSON::PP>.
_
alternate_modules => ['JSON::MaybeXS', 'JSON::PP', 'Cpanel::JSON::XS'],
},
{
module => 'JSON::XS',
summary => '',
description => <<'_',
<pm:Cpanel::JSON::XS> is the fork of <pm:JSON::XS> that fixes some bugs and adds
some features, mainly so it's more compatible with <pm:JSON::PP>. See the
documentation of <pm:Cpanel::JSON::XS> for more details on those.
_
alternate_modules => ['Cpanel::JSON::XS'],
},
{
module => 'Module::Path',
summary => '',
description => <<'_',
It's a nice little concept and module, and often useful. But the decision like
defaulting to doing abs_path()
(https://rt.cpan.org/Public/Bug/Display.html?id=100979), which complicates the
module, makes its behavior different than Perl's require(), as well as opens the
can of worms of ugly filesytem details, has prompted me to release an
alternative. Module::Path::More also has the options to find .pod and/or .pmc
file, and find all matches instead of the first.
_
alternate_modules => ['Module::Path::More'],
},
{
module => 'String::Truncate',
description => <<'_',
Has non-core dependencies to <pm:Sub::Exporter> and <pm:Sub::Install>.
_
alternate_modules => ['String::Elide::Tiny'],
},
{
module => 'Module::AutoLoad',
description => <<'_',
Contains remote exploit. Ref:
lib/Acme/CPANModules/PERLANCAR/Avoided.pm view on Meta::CPAN
=item L<File::Flock>
Too many deps.
Author: L<MUIR|https://metacpan.org/author/MUIR>
I used to use L<File::Flock> due to its simple interface. However, this module
depends on things like L<AnyEvent>, L<Data::Structure::Util>,
L<File::Slurp>, et al, all of which seem unnecessary. Nowadays I'm opting to
use L<File::Flock::Retry>, or just plain C<flock()>.
Alternate modules: L<File::Flock::Retry>
=item L<File::Slurp>
Not encoding-friendly.
Author: L<CAPOEIRAB|https://metacpan.org/author/CAPOEIRAB>
File::Slurp was created (1996) before Perl IO layers (5.8, 2002) and its API
does not handle encoding properly. See:
L<http://blogs.perl.org/users/leon_timmermans/2015/08/fileslurp-is-broken-and-wrong.html>
or discussion on RT.
Alternate modules: L<File::Slurper>
=item L<File::Slurp::Tiny>
Discouraged by the author.
Author: L<LEONT|https://metacpan.org/author/LEONT>
The author of File::Slurp::Tiny has discouraged its use and recommends his newer
module L<File::Slurper>.
Alternate modules: L<File::Slurper>
=item L<Exporter::Lite>
Unnecessary, use Exporter instead.
Author: L<NEILB|https://metacpan.org/author/NEILB>
I used to use this module because I didn't know that L<Exporter> (since perl
5.8.3, 2004) can also be used without subclassing, i.e. instead of:
use Exporter;
our @ISA = qw(Exporter);
our @EXPORT = (...);
you can also use it like this:
use Exporter qw(import);
our @EXPORT = (...);
Hence, this module (first released in 2001) is no longer necessary. Besides,
this module has a worse startup overhead than L<Exporter> I<and> has less
features. So there is absolutely no reason to use it.
Alternate modules: L<Exporter>
=item L<JSON>
Somewhat broken.
Author: L<ISHIGAKI|https://metacpan.org/author/ISHIGAKI>
JSON.pm is a discouraged module now, due to its somewhat broken backend handling
and lack of support for L<Cpanel::JSON::XS>. Consider switching to
L<JSON::MaybeXS> or perhaps just L<JSON::PP>.
Alternate modules: L<JSON::MaybeXS>, L<JSON::PP>, L<Cpanel::JSON::XS>
=item L<JSON::XS>
.
Author: L<MLEHMANN|https://metacpan.org/author/MLEHMANN>
L<Cpanel::JSON::XS> is the fork of L<JSON::XS> that fixes some bugs and adds
some features, mainly so it's more compatible with L<JSON::PP>. See the
documentation of L<Cpanel::JSON::XS> for more details on those.
Alternate modules: L<Cpanel::JSON::XS>
=item L<Module::Path>
.
Author: L<NEILB|https://metacpan.org/author/NEILB>
It's a nice little concept and module, and often useful. But the decision like
defaulting to doing abs_path()
(https://rt.cpan.org/Public/Bug/Display.html?id=100979), which complicates the
module, makes its behavior different than Perl's require(), as well as opens the
can of worms of ugly filesytem details, has prompted me to release an
alternative. Module::Path::More also has the options to find .pod and/or .pmc
file, and find all matches instead of the first.
Alternate modules: L<Module::Path::More>
=item L<String::Truncate>
Author: L<RJBS|https://metacpan.org/author/RJBS>
Has non-core dependencies to L<Sub::Exporter> and L<Sub::Install>.
Alternate modules: L<String::Elide::Tiny>
=item L<Module::AutoLoad>
Contains remote exploit. Ref:
( run in 1.211 second using v1.01-cache-2.11-cpan-39bf76dae61 )