Movatterモバイル変換


[0]ホーム

URL:


 / 
perl-5.40.1
River stage five • 11893 direct dependents • 33358 total dependents
/PerlIO::scalar

NAME

PerlIO::scalar - in-memory IO, scalar IO

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;

DESCRIPTION

A filehandle is opened but the file operations are performed "in-memory" on a scalar variable. All the normal file operations can be performed on the handle. The scalar is considered a stream of bytes. Currently fileno($fh) returns -1.

Attempting to open a read-only scalar for writing will fail, and if warnings are enabled, produce a warning.

IMPLEMENTATION NOTE

PerlIO::scalar only exists as a stub. One does not need to explicitlyuse PerlIO::scalar.

Module Install Instructions

To install less, copy and paste the appropriate command in to your terminal.

cpanm

cpanm less

CPAN shell

perl -MCPAN -e shellinstall less

For more information on module installation, please visitthe detailed CPAN module installation guide.

Keyboard Shortcuts

Global
sFocus search bar
?Bring up this help dialog
GitHub
gpGo to pull requests
gigo to github issues (only if github is preferred repository)
POD
gaGo to author
gcGo to changes
giGo to issues
gdGo to dist
grGo to repository/SCM
gsGo to source
gbGo to file browse
Search terms
module: (e.g.module:Plugin)
distribution: (e.g.distribution:Dancer auth)
author: (e.g.author:SONGMU Redis)
version: (e.g.version:1.00)

[8]ページ先頭

©2009-2025 Movatter.jp