Skip Menu |
 

This queue is for tickets about the IO CPAN distribution.

Report information
The Basics
Id: 82552
Status: resolved
Priority: 0/
Queue: IO

People
Owner: Nobody in particular
Requestors: LEMBARK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.25
Fixed in: (no value)



Subject: IO::File accepts no arguments for new(), checks for @_ == 1 or croaks
Download (untitled) / with headers
text/plain 473b
Docs: $fh = new IO::File "> file"; Code: DB<<7>> v 310 307 ## Constructors, destructors. 308 ## 309 310 sub new { 311: my $class = ref($_[0]) || $_[0] || "IO::Handle"; 312==> @_ == 1 or croak "usage: new $class"; 313: my $io = gensym; 314: bless $io, $class; 315 } 316 DB<<10>> x IO::File->VERSION 0 1.14 DB<<11>> x IO->VERSION 0 1.25
From: victor [...] vsespb.ru
Download (untitled) / with headers
text/plain 706b
http://cpansearch.perl.org/src/GBARR/IO-1.25/lib/IO/File.pm IO::File constructors differs from what you posted. Also example in docs works. On Tue Jan 08 05:30:52 2013, LEMBARK wrote: Show quoted text
> Docs: > $fh = new IO::File "> file"; > > Code: > > DB<<7>> v 310 > 307 ## Constructors, destructors. > 308 ## > 309 > 310 sub new { > 311: my $class = ref($_[0]) || $_[0] || "IO::Handle"; > 312==> @_ == 1 or croak "usage: new $class"; > 313: my $io = gensym; > 314: bless $io, $class; > 315 } > 316 > > DB<<10>> x IO::File->VERSION > 0 1.14 > > DB<<11>> x IO->VERSION > 0 1.25 >
Ticket migrated to github as https://github.com/toddr/IO/issues/44


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.