scalar.pm

来自「source of perl for linux application,」· PM 代码 · 共 42 行

PM
42
字号
package PerlIO::scalar;our $VERSION = '0.05';use XSLoader ();XSLoader::load 'PerlIO::scalar';1;__END__=head1 NAMEPerlIO::scalar - in-memory IO, scalar IO=head1 SYNOPSIS   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;=head1 DESCRIPTIONA filehandle is opened but the file operations are performed "in-memory"on a scalar variable.  All the normal file operations can be performedon the handle. The scalar is considered a stream of bytes.  Currentlyfileno($fh) returns -1.=head1 IMPLEMENTATION NOTEC<PerlIO::scalar> only exists to use XSLoader to load C code thatprovides support for treating a scalar as an "in memory" file.One does not need to explicitly C<use PerlIO::scalar>.=cut

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?