NAME
IOLayer::Base64 - PerlIO layer for base64 (MIME) encoded strings
SYNOPSIS
use IOLayer::Base64;
open( my $in,'<Via(IOLayer::Base64)','file.mime' )
or die "Can't open file.mime for reading: $!\n";
open( my $out,'>Via(IOLayer::Base64)','file.mime' )
or die "Can't open file.mime for writing: $!\n";
DESCRIPTION
This module implements a PerlIO layer that works on files encoded in the Base64 format (as described in RFC 2045). It will decode from base64 format while reading from a handle, and it will encode to base64 while writing to a handle.
CAVEAT
The current implementation slurps the whole contents of a handle into memory before doing any encoding or decoding. This may change in the future when I finally figured out how READ and WRITE are supposed to work on incompletely processed buffers.
COPYRIGHT
Copyright 2002 Elizabeth Mattijsen.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.