devel/p5-true 1.0.2 DragonFly
Automatically return a true value when a file is required
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- Categories
- devel, perl5
- Package size
- 10.2 KiB, 17.9 KiB installed
Description
Perl's require builtin (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" behaviour 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.
In the other systems
The newest version among them is 1.0.2, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-true | 1.0.2 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-true | 1.0.2 newest | none known | - | [email protected] | - |
| HardenedBSD | devel/p5-true | 1.0.2 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-true | 1.0.2 newest | no data | - | [email protected] | - |
Install
Binary package:
pkg install p5-true
From DPorts:
cd /usr/dports/devel/p5-true && make install clean
Dependency graph
Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.