BSD Ports

devel/p5-IO-Stringy 2.113 DragonFly

Use IO handles with non-file objects

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
devel, perl5
Package size
49.5 KiB, 133.3 KiB installed

Description

This toolkit primarily provides modules for performing both traditional and object-oriented i/o) on things other than normal filehandles; in particular, IO::Scalar, IO::ScalarArray, and IO::Lines.

In the more-traditional IO::Handle front, we have IO::AtomicFile which may be used to painlessly create files which are updated atomically.

And in the "this-may-prove-useful" corner, we have IO::Wrap, whose exported wraphandle() function will clothe anything that's not a blessed object in an IO::Handle-like wrapper... so you can just use OO syntax and stop worrying about whether your function's caller handed you a string, a globref, or a FileHandle.

In the other systems

SystemPortVersion
DragonFlydevel/p5-IO-Stringy2.113
FreeBSDdevel/p5-IO-Stringy2.113
MidnightBSDdevel/p5-IO-Stringy2.113
HardenedBSDdevel/p5-IO-Stringy2.113
GhostBSDdevel/p5-IO-Stringy2.113

Install

Binary package:

pkg install p5-IO-Stringy

From DPorts:

cd /usr/dports/devel/p5-IO-Stringy && make install clean

Dependencies

Run dependencies 1