devel/p5-Slurp 0.4_1 FreeBSD
Slurp entire files into variables
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- ART10, GPLv1+
- Categories
- devel, perl5
- Package size
- 6.7 KiB, 10.8 KiB installed
Description
This simple module serves one purpose - to provide a simple means to read (or slurp) an entire file into memory for processing. This module allows the replacement of the prototypical foreach- or while- loops used for opening and reading of files with single-line constructs.
Of note with this module is that the magic of the @ARGV variable and the input record separator, $/, are used to facilitate the reading of entire files into either an array or scalar using minimal code.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/p5-Slurp | 0.4_1 |
| DragonFly | devel/p5-Slurp | 0.4_1 |
| HardenedBSD | devel/p5-Slurp | 0.4_1 |
| GhostBSD | devel/p5-Slurp | 0.4_1 |
Install
Binary package:
pkg install p5-Slurp
From the ports tree:
cd /usr/ports/devel/p5-Slurp/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= p5-Slurp>0:devel/p5-Slurp
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.4_1 | 0.4_1 | 0.4_1 | 0.4_1 | 0.4_1 |
| FreeBSD:14:quarterly | 0.4_1 | 0.4_1 | n/a | 0.4_1 | 0.4_1 |
| FreeBSD:15:latest | 0.4_1 | 0.4_1 | n/a | 0.4_1 | 0.4_1 |
| FreeBSD:15:quarterly | 0.4_1 | 0.4_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.4_1 | 0.4_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 1
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- USES
- perl5
- Service scripts
- none
Files
pkg-plist 2
- %%PERL5_MAN3%%/Slurp.3.gz
- %%SITE_PERL%%/Slurp.pm
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| Slurp-0.4.tar.gz | 2441 | a8e9d85ccea2d5693be6e86b7d6a90eba6e547cd76d7d52895da8ec23350209b |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.