PerlIO::if - Push layers conditionally
open my $fh, '<:if(!crlf,crlf)', $filename;
This module provides a conditional PerlIO layer.
This modules does not have to be loaded explicitly, it will be loaded automatically by using it in an open mode
The argument must have the following general syntax:
layer may be any layer installed on the system.
condition may be any test from the following list:
True if there is a buffered layer in the IO stack.
True if there is a layer doing crlf translation
True if there is a layer that is capable of doing crlf translation
Leon Timmermans <email@example.com>
This software is copyright (c) 2011 by Leon Timmermans.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.