Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the IO-All CPAN distribution.

Report information
The Basics
Id: 20053
Status: resolved
Priority: 0/
Queue: IO-All

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

Bug Information
Severity: (no value)
Broken in: 0.13
Fixed in: 0.36



Subject: IO/All.pm isn't syntactically valid.
I tried installing IO::All on my bleadperl but found that it couldn't pass a syntax check. josh@lik:~/.cpan/build/IO-All-0.35/lib$ perl5.9.4 -MIO::All -e1 String found where operator expected at IO/All.pm line 300, near "Carp::carp "Undefined behavior for overloaded IO::All operation: '$key'"" (Do you need to predeclare Carp::carp?) syntax error at IO/All.pm line 300, near "Carp::carp "Undefined behavior for overloaded IO::All operation: '$key'"" BEGIN not safe after errors--compilation aborted at IO/All.pm line 612. Compilation failed in require. BEGIN failed--compilation aborted.
From: SHLOMIF [...] cpan.org
On Fri Jun 23 01:50:20 2006, JJORE wrote: Show quoted text
> I tried installing IO::All on my bleadperl but found that it
couldn't Show quoted text
> pass a syntax check. > > josh@lik:~/.cpan/build/IO-All-0.35/lib$ perl5.9.4 -MIO::All -e1 > String found where operator expected at IO/All.pm line 300, near > "Carp::carp "Undefined behavior for overloaded IO::All
operation: '$key'"" Show quoted text
> (Do you need to predeclare Carp::carp?) > syntax error at IO/All.pm line 300, near "Carp::carp "Undefined
behavior Show quoted text
> for overloaded IO::All operation: '$key'"" > BEGIN not safe after errors--compilation aborted at IO/All.pm line
612. Show quoted text
> Compilation failed in require. > BEGIN failed--compilation aborted.
Here's a patch that fixes this problem as well as the IO::String bug. Ingy, can you please apply it? Regards, Shlomi Fish
diff -u -r orig/lib/IO/All.pm new/lib/IO/All.pm --- orig/lib/IO/All.pm 2006-05-09 18:26:52.000000000 +0300 +++ new/lib/IO/All.pm 2006-09-17 18:47:28.422135935 +0300 @@ -2,6 +2,9 @@ use 5.006001; use strict; use warnings; +require Carp; +# So one can use Carp::carp "$message" - without the parenthesis. +sub Carp::carp; use IO::All::Base -base; our $VERSION = '0.35'; use File::Spec(); diff -u -r orig/Makefile.PL new/Makefile.PL --- orig/Makefile.PL 2006-05-08 11:01:57.000000000 +0300 +++ new/Makefile.PL 2006-09-17 09:03:33.994518000 +0300 @@ -4,6 +4,7 @@ all_from 'lib/IO/All.pm'; requires perl => '5.6.1'; +requires 'IO::String' => 0; clean_files 't/output/'; Only in new/: make-test.dump