Perlio-Scalar

PerlIO::scalar(3p) Perl Programmers Reference Guide PerlIO::scalar(3p)

Perlio-Scalar

PerlIO::scalar(3p) Perl Programmers Reference Guide PerlIO::scalar(3p) # PerlIO::scalar(3p) Perl Programmers Reference Guide PerlIO::scalar(3p) NNAAMMEE # PerlIO::scalar - in-memory IO, scalar IO SSYYNNOOPPSSIISS # my $scalar = ''; ... open my $fh, "<", \$scalar or die; open my $fh, ">", \$scalar or die; open my $fh, ">>", \$scalar or die; or my $scalar = ''; ... open my $fh, "<:scalar", \$scalar or die; open my $fh, ">:scalar", \$scalar or die; open my $fh, ">>:scalar", \$scalar or die; DDEESSCCRRIIPPTTIIOONN # A filehandle is opened but the file operations are performed "in-memory" on a scalar variable. ...