Also do the same in some of its error messages. This fixes CPAN RT#65836.
Bo Lindbergh <blgl@stacken.kth.se>
Bob Dalgleish <Robert.Dalgleish@sk.sympatico.ca>
Bob Wilkinson <bob@fourtheye.org>
+Boris Ratner <ratner2@gmail.com>
Boris Zentner <bzm@2bz.de>
Boyd Gerber <gerberb@zenez.com>
Brad Appleton <bradapp@enteract.com>
use strict;
use warnings;
-our $VERSION = "1.25_03";
+our $VERSION = "1.25_04";
XSLoader::load 'IO', $VERSION;
sub import {
use File::Spec;
@ISA = qw(Tie::Hash Exporter);
-$VERSION = "1.07";
+$VERSION = "1.08";
$VERSION = eval $VERSION;
@EXPORT_OK = qw(DIR_UNLINK);
sub DIR_UNLINK () { 1 }
sub new {
- @_ >= 1 && @_ <= 2 or croak 'usage: new IO::Dir [DIRNAME]';
+ @_ >= 1 && @_ <= 2 or croak 'usage: IO::Dir->new([DIRNAME])';
my $class = shift;
my $dh = gensym;
if (@_) {
use IO::File;
- $fh = new IO::File;
+ $fh = IO::File->new();
if ($fh->open("< file")) {
print <$fh>;
$fh->close;
}
- $fh = new IO::File "> file";
+ $fh = IO::File->new("> file");
if (defined $fh) {
print $fh "bar\n";
$fh->close;
}
- $fh = new IO::File "file", "r";
+ $fh = IO::File->new("file", "r");
if (defined $fh) {
print <$fh>;
undef $fh; # automatically closes the file
}
- $fh = new IO::File "file", O_WRONLY|O_APPEND;
+ $fh = IO::File->new("file", O_WRONLY|O_APPEND);
if (defined $fh) {
print $fh "corge\n";
@ISA = qw(IO::Handle IO::Seekable Exporter);
-$VERSION = "1.14";
+$VERSION = "1.15";
@EXPORT = @IO::Seekable::EXPORT;
my $type = shift;
my $class = ref($type) || $type || "IO::File";
@_ >= 0 && @_ <= 3
- or croak "usage: new $class [FILENAME [,MODE [,PERMS]]]";
+ or croak "usage: $class->new([FILENAME [,MODE [,PERMS]]])";
my $fh = $class->SUPER::new();
if (@_) {
$fh->open(@_)
use IO::Handle;
- $io = new IO::Handle;
+ $io = IO::Handle->new();
if ($io->fdopen(fileno(STDIN),"r")) {
print $io->getline;
$io->close;
}
- $io = new IO::Handle;
+ $io = IO::Handle->new();
if ($io->fdopen(fileno(STDOUT),"w")) {
$io->print("Some text\n");
}
require Exporter;
@ISA = qw(Exporter);
-$VERSION = "1.29";
+$VERSION = "1.30";
$VERSION = eval $VERSION;
@EXPORT_OK = qw(
sub new {
my $class = ref($_[0]) || $_[0] || "IO::Handle";
- @_ == 1 or croak "usage: new $class";
+ @_ == 1 or croak "usage: $class->new()";
my $io = gensym;
bless $io, $class;
}
sub new_from_fd {
my $class = ref($_[0]) || $_[0] || "IO::Handle";
- @_ == 3 or croak "usage: new_from_fd $class FD, MODE";
+ @_ == 3 or croak "usage: $class->new_from_fd(FD, MODE)";
my $io = gensym;
shift;
IO::Handle::fdopen($io, @_)
use Carp;
use Symbol;
-$VERSION = "1.13";
+$VERSION = "1.14";
sub new {
my $type = shift;
my $class = ref($type) || $type || "IO::Pipe";
- @_ == 0 || @_ == 2 or croak "usage: new $class [READFH, WRITEFH]";
+ @_ == 0 || @_ == 2 or croak "usage: $class->([READFH, WRITEFH])";
my $me = bless gensym(), $class;
use IO::Pipe;
- $pipe = new IO::Pipe;
+ $pipe = IO::Pipe->new();
if($pid = fork()) { # Parent
$pipe->reader();
or
- $pipe = new IO::Pipe;
+ $pipe = IO::Pipe->new();
$pipe->reader(qw(ls -l));
our(@ISA, @EXPORT_OK, @EXPORT, $VERSION);
@ISA = qw(Exporter);
-$VERSION = "0.07";
+$VERSION = "0.08";
@EXPORT = qw( POLLIN
POLLOUT
use IO::Poll qw(POLLRDNORM POLLWRNORM POLLIN POLLHUP);
- $poll = new IO::Poll;
+ $poll = IO::Poll->new();
$poll->mask($input_handle => POLLIN);
$poll->mask($output_handle => POLLOUT);
use vars qw($VERSION @ISA);
require Exporter;
-$VERSION = "1.18";
+$VERSION = "1.20";
@ISA = qw(Exporter); # This is only so we can do version checking
use IO::Select;
use IO::Socket;
- $lsn = new IO::Socket::INET(Listen => 1, LocalPort => 8080);
- $sel = new IO::Select( $lsn );
+ $lsn = IO::Socket::INET->new(Listen => 1, LocalPort => 8080);
+ $sel = IO::Select->new( $lsn );
while(@ready = $sel->can_read) {
foreach $fh (@ready) {
C<JSON::PP> has been upgraded from version 2.27103 to 2.27104
+=item *
+
+C<IO> has been upgraded from version 1.25_03 to 1.25_04.
+
=back
=head2 Removed Modules and Pragmata