summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2014-10-12 03:42:38 -0400
committerFather Chrysostomos <sprout@cpan.org>2014-10-13 14:09:49 -0700
commitf4eedc6b8c8773817aee4a0424179660710446bf (patch)
tree330036932efc193786b44f63de122ffb62f5a1f8 /lib
parent56873d4238039e462718436d7c6b45e4689209de (diff)
downloadperl-f4eedc6b8c8773817aee4a0424179660710446bf.tar.gz
speed up building with less disk IO pod moves+__END__+misc
In Cwd.pm, dont search for pwd on Win32. Also trim down the list of makefile suffixes on Win32 so it doesn't try searching for av.pas and perl.f90 and hash.cbl on disk. Add __END__ tokens to stop the last read() call on the handle which returns 0 bytes at EOF.
Diffstat (limited to 'lib')
-rw-r--r--lib/warnings/register.pm41
1 files changed, 20 insertions, 21 deletions
diff --git a/lib/warnings/register.pm b/lib/warnings/register.pm
index 62a3dbfce0..0adf104af7 100644
--- a/lib/warnings/register.pm
+++ b/lib/warnings/register.pm
@@ -1,25 +1,6 @@
package warnings::register;
-our $VERSION = '1.03';
-
-=pod
-
-=head1 NAME
-
-warnings::register - warnings import function
-
-=head1 SYNOPSIS
-
- use warnings::register;
-
-=head1 DESCRIPTION
-
-Creates a warnings category with the same name as the current package.
-
-See L<warnings> for more information on this module's usage.
-
-=cut
-
+our $VERSION = '1.04';
require warnings;
# left here as cruft in case other users were using this undocumented routine
@@ -43,5 +24,23 @@ sub import
warnings::register_categories($package . "::$_") for @categories;
}
-
1;
+__END__
+
+=pod
+
+=head1 NAME
+
+warnings::register - warnings import function
+
+=head1 SYNOPSIS
+
+ use warnings::register;
+
+=head1 DESCRIPTION
+
+Creates a warnings category with the same name as the current package.
+
+See L<warnings> for more information on this module's usage.
+
+=cut