PerlIO::Via

A helper class for PerlIO layers implemented in Perl. PerlIO::Via ships with the Perl 5.8 source kit.

For example, you can use PerlIO::Via to call MIME::Base64::encode_base64() via open():

#!/usr/local/bin/perl -w;
use MIME::Base64;
open(my $fh, ">Via(MIME::Base64)", "encode_base64");

PerlIO::Via implements the following methods.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.