Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gfx/perl-perlio-util

PerlIO::Util on CPAN
https://github.com/gfx/perl-perlio-util

Last synced: 26 days ago
JSON representation

PerlIO::Util on CPAN

Awesome Lists containing this project

README

        

NAME

PerlIO::Util - A selection of general PerlIO utilities

SYNOPSIS

use PerlIO::Util;

# to create $file if needed, and then call flock($in, LOCK_EX)
my $in = PerlIO::Util->open('+<:creat :flock', $file);

# to multiplex output
*STDERR->push_layer(tee => ">> $err_log");

# to read lines backward
my $in = PerlIO::Util->open('<:reverse', $file);

# to open file encoded to filesystem encoding
# (need to set PERLIO_FSE unless using Win32)
my $in = PerlIO::Util->open('<:fse', $file);

INSTALLATION

To install this module, run the following commands:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

Perl 5.8.1 or later, and a C compiler.

COPYRIGHT AND LICENCE

Copyright (C) 2008-2010, Goro Fuji , Some rights reversed.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.