📄 scalar.pm
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -