$io->read ( BUF, LEN, [OFFSET] )
$io->print ( ARGS )
$io->printf ( FMT, [ARGS] )
+ $io->say ( ARGS )
$io->stat
$io->sysread ( BUF, LEN, [OFFSET] )
$io->syswrite ( BUF, [LEN, [OFFSET]] )
require Exporter;
@ISA = qw(Exporter);
-$VERSION = "1.24";
+$VERSION = "1.27_01";
$VERSION = eval $VERSION;
@EXPORT_OK = qw(
print
printf
+ say
getline
getlines
printf $this @_;
}
+sub say {
+ @_ or croak 'usage: $io->say(ARGS)';
+ my $this = shift;
+ local $\ = "";
+ print $this @_, "\n";
+}
+
sub getline {
@_ == 1 or croak 'usage: $io->getline()';
my $this = shift;
@_ < 3 || croak 'usage: $io->write( [FORMAT_NAME] )';
if (@_ == 2) {
my ($io, $fmt) = @_;
- my $oldfmt = $io->format_name($fmt);
+ my $oldfmt = $io->format_name(qualify($fmt,caller));
CORE::write($io);
$io->format_name($oldfmt);
} else {