Subject: | Module doesn't compile |
The all module doesn't compile. It missing File::Find::Rule in Build.PL
and it would be nice if Makefile.PL was created too.
The main problem is that barewords generates problem so
this is wrong:
use all Sys::;
this is ok:
use all 'Sys::';
Subject: | all_fix_build.patch |
=== t/02multiple.t
==================================================================
--- t/02multiple.t (/local/all/trunk) (revision 7)
+++ t/02multiple.t (/local/all/branches/dexter) (revision 7)
@@ -3,7 +3,7 @@
use Test::More no_plan => 1;
eval {
- use all IO::,Sys::;
+ use all 'IO::' ,'Sys::';
};
if (!$@) {
ok(my $sock = IO::Socket->new());
=== t/00single.t
==================================================================
--- t/00single.t (/local/all/trunk) (revision 7)
+++ t/00single.t (/local/all/branches/dexter) (revision 7)
@@ -3,7 +3,7 @@
use Test::More no_plan => 1;
eval {
- use all IO::;
+ use all 'IO::';
};
if (!$@) {
ok(my $sock = IO::Socket->new());
=== t/03multiple_of.t
==================================================================
--- t/03multiple_of.t (/local/all/trunk) (revision 7)
+++ t/03multiple_of.t (/local/all/branches/dexter) (revision 7)
@@ -3,7 +3,7 @@
use Test::More no_plan => 1;
eval {
- use all of => IO::,Sys::;
+ use all of => 'IO::', 'Sys::';
};
if (!$@) {
ok(my $sock = IO::Socket->new());
=== t/01single_of.t
==================================================================
--- t/01single_of.t (/local/all/trunk) (revision 7)
+++ t/01single_of.t (/local/all/branches/dexter) (revision 7)
@@ -3,7 +3,7 @@
use Test::More no_plan => 1;
eval {
- use all of => IO::;
+ use all of => 'IO::';
};
if (!$@) {
ok(my $sock = IO::Socket->new());
=== MANIFEST
==================================================================
--- MANIFEST (/local/all/trunk) (revision 7)
+++ MANIFEST (/local/all/branches/dexter) (revision 7)
@@ -7,3 +7,4 @@
t/01single_of.t
t/02multiple.t
t/03multiple_of.t
+Makefile.PL
=== lib/all.pm
==================================================================
--- lib/all.pm (/local/all/trunk) (revision 7)
+++ lib/all.pm (/local/all/branches/dexter) (revision 7)
@@ -81,12 +81,12 @@
=head1 SYNOPSIS
# use everything in the IO:: namespace
- use all of => IO::;
- use all IO::;
+ use all of => 'IO::';
+ use all 'IO::';
# use everything in the IO:: and Sys:: namespaces
- use all IO::, Sys::;
- use all of => IO::, Sys::;
+ use all 'IO::', 'Sys::';
+ use all of => 'IO::', 'Sys::';
=head1 DESCRIPTION
=== Build.PL
==================================================================
--- Build.PL (/local/all/trunk) (revision 7)
+++ Build.PL (/local/all/branches/dexter) (revision 7)
@@ -4,7 +4,9 @@
module_name => 'all',
license => 'perl',
requires => {
- 'File::Spec' => 0.01
+ 'File::Spec' => 0.01,
+ 'File::Find::Rule' => 0,
},
+ create_makefile_pl => 'traditional',
);
$build->create_build_script;
=== README
==================================================================
--- README (/local/all/trunk) (revision 7)
+++ README (/local/all/branches/dexter) (revision 7)
@@ -3,12 +3,12 @@
SYNOPSIS
# use everything in the IO:: namespace
- use all of => IO::;
- use all IO::;
+ use all of => 'IO::';
+ use all 'IO::';
# use everything in the IO:: and Sys:: namespaces
- use all IO::, Sys::;
- use all of => IO::, Sys::;
+ use all 'IO::', 'Sys::';
+ use all of => 'IO::', 'Sys::';
DESCRIPTION
With the all pragma you can load multiple modules that share the same