Mon, 09 Nov 2026 09:50:10 UTC Log in
Automatically return a true value when a file is required 146.14 KB built 2026-10-17 03:16:00 GMT

Description

Perl's require built-in (and its use wrapper) requires the files it loads to return a true value. This is usually accomplished by placing a single 1; statement at the end of included scripts or modules. It's not onerous to add but it's a speed bump on the Perl novice's road to enlightenment. In addition, it appears to be a non-sequitur to the uninitiated, leading some to attempt to mitigate its appearance with a comment: 1; # keep require happy or: 1; # Do not remove this line or even: 1; # Must end with this, because Perl is bogus. This module packages this "return true" behavior so that it need not be written explicitly. It can be used directly, but it is intended to be invoked from the import method of a Modern::Perl-style module that enables modern Perl features and conveniences and cleans up legacy Perl warts.

Dependencies

28 total
Requires27
  • coreutils
  • findutils
  • gcc
  • make
  • perl(B::Hooks::OP::Annotation) >= 0.44
  • perl(B::Hooks::OP::Check) >= 0.22
  • perl(Config)
  • perl(Devel::StackTrace) >= 2.03
  • perl(ExtUtils::Depends) >= 0.304
  • perl(ExtUtils::MakeMaker) >= 6.76
  • perl(File::Copy)
  • perl(File::Spec)
  • perl(FindBin)
  • perl(Function::Parameters) >= 2.001003
  • perl(Moo) >= 2.003004
  • perl(Test::More)
  • perl(XSLoader)
  • perl(base)
  • perl(lib)
  • perl(strict)
  • perl(version) >= 0.77
  • perl(warnings)
  • perl-devel
  • perl-generators
  • perl-interpreter
  • rpmlib(CompressedFileNames) <= 3.0.4-1
  • rpmlib(FileDigests) <= 4.6.0-1
Provides1
  • perl-true = 1.0.2-20.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances

Files

2
Files 1–2 of 2

Component of

buildroots that installed this RPM

No Buildroots