This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
10 years agocorrect myself's name in AUTHORS
Hongwen Qiu [Tue, 25 Jan 2011 02:18:10 +0000 (10:18 +0800)]
correct myself's name in AUTHORS

10 years ago[perl #82738] Add L<> to more links.
Michael Stevens [Mon, 24 Jan 2011 20:34:58 +0000 (12:34 -0800)]
[perl #82738] Add L<> to more links.

10 years ago[perl #82730] Fix filename reference to perldelta_template.
Michael Stevens [Mon, 24 Jan 2011 20:34:16 +0000 (12:34 -0800)]
[perl #82730] Fix filename reference to perldelta_template.

10 years agoMake t/porting/buildtoc.t use runperl for portability.
Craig A. Berry [Tue, 25 Jan 2011 00:58:35 +0000 (18:58 -0600)]
Make t/porting/buildtoc.t use runperl for portability.

10 years agomake reg_eval_scope.t TODOs consistently fail
David Mitchell [Mon, 24 Jan 2011 22:10:20 +0000 (22:10 +0000)]
make reg_eval_scope.t TODOs consistently fail

Some of the TODO tests in reg_eval_scope.t spuriously passed under
non-threaded builds. Make the tests harder so they always fail.

Since one of the key bugs in (?{..}) is the trashing of the parent pad,
add some extra lexical vars to the parent scope and check they're still
there at the end.

10 years agofix harmless invalid read in Perl_re_compile()
David Mitchell [Mon, 24 Jan 2011 17:38:37 +0000 (17:38 +0000)]
fix harmless invalid read in Perl_re_compile()

[perl #2460] described a case where electric fence reported an invalid
read. This could be reproduced under valgrind with blead and -e'/x/',
but only on a non-debugging build.

This was because it was checking for certain pairs of nodes (e.g. BOL + END)
and wasn't allowing for EXACT nodes, which have the string at the next
node position when using a naive NEXTOPER(first). In the non-debugging
build, the nodes aren't initialised to zero, and a 1-char EXACT node isn't
long enough to spill into the type field of the "next node".

Fix this by only using NEXTOPER(first) when we know the first node is
kosher.

10 years ago[pod] typo fix for perlxstut.pod
Hongwe Qiu [Mon, 24 Jan 2011 11:22:18 +0000 (19:22 +0800)]
[pod] typo fix for perlxstut.pod

10 years agoAdd Hongwe Qiu to AUTHORS
Father Chrysostomos [Mon, 24 Jan 2011 17:57:49 +0000 (09:57 -0800)]
Add Hongwe Qiu to AUTHORS

10 years agoPut AUTHORS in alphabetical order
Father Chrysostomos [Mon, 24 Jan 2011 17:57:08 +0000 (09:57 -0800)]
Put AUTHORS in alphabetical order

I have not checked the whole file. I just noticed this bit.

10 years ago[perl #82722] Give more filenames and urls L<>
Michael Stevens [Mon, 24 Jan 2011 17:53:18 +0000 (09:53 -0800)]
[perl #82722] Give more filenames and urls L<>

10 years ago[perl #82718] Improve English and add some L<> around http links
Michael Stevens [Mon, 24 Jan 2011 17:52:43 +0000 (09:52 -0800)]
[perl #82718] Improve English and add some L<> around http links

10 years ago[perl #82712] Pod link fixes to use correct markup.
Michael Stevens [Mon, 24 Jan 2011 17:51:57 +0000 (09:51 -0800)]
[perl #82712] Pod link fixes to use correct markup.

(found using code from Karl Williamson <public@khwilliamson.com>)

10 years ago[perl #82710] Fix incorrect pod link markup.
Michael Stevens [Mon, 24 Jan 2011 17:51:30 +0000 (09:51 -0800)]
[perl #82710] Fix incorrect pod link markup.

(found using code from Karl Williamson <public@khwilliamson.com>)

10 years ago[perl #82708] Fix unescaped chars in L<>.
Michael Stevens [Mon, 24 Jan 2011 17:51:04 +0000 (09:51 -0800)]
[perl #82708] Fix unescaped chars in L<>.

10 years ago[perl #82706] Tidy up README.win32 pod.
Michael Stevens [Mon, 24 Jan 2011 17:50:35 +0000 (09:50 -0800)]
[perl #82706] Tidy up README.win32 pod.

Surround http:// links with L<> and tidying up lists slightly.

10 years ago[perl #82704] Change bare link in pod to L<...>
Michael Stevens [Mon, 24 Jan 2011 16:40:14 +0000 (08:40 -0800)]
[perl #82704] Change bare link in pod to L<...>

10 years ago[perl #82702] Fix commit message internal link.
Michael Stevens [Mon, 24 Jan 2011 16:39:33 +0000 (08:39 -0800)]
[perl #82702] Fix commit message internal link.

10 years agoExchange dist/Env/t/{array,env}.t, which were transposed by b695f709e8a342e3
Nicholas Clark [Mon, 24 Jan 2011 16:24:28 +0000 (16:24 +0000)]
Exchange dist/Env/t/{array,env}.t, which were transposed by b695f709e8a342e3

10 years agoConvert Env's tests to Test::More
Nicholas Clark [Mon, 24 Jan 2011 16:22:57 +0000 (16:22 +0000)]
Convert Env's tests to Test::More

10 years agoConvert if's test to Test::More
Nicholas Clark [Mon, 24 Jan 2011 16:05:36 +0000 (16:05 +0000)]
Convert if's test to Test::More

10 years agoConvert Storable's store.t to Test::More
Nicholas Clark [Mon, 24 Jan 2011 15:47:50 +0000 (15:47 +0000)]
Convert Storable's store.t to Test::More

The non-obvious reason for the test count increasing from 20 to 21 is that the
file used to read:

print "not " unless open(OUT, 'store');
binmode OUT;

$r = fd_retrieve(::OUT);
print "not " unless defined $r;
print "ok 12\n";

10 years agoConvert I18N::Colate's test to Test::More.
Nicholas Clark [Mon, 24 Jan 2011 15:33:52 +0000 (15:33 +0000)]
Convert I18N::Colate's test to Test::More.

10 years agoMerge perl_keyword.pl into regen/keywords.pl, to generate keywords.[ch]
Nicholas Clark [Mon, 24 Jan 2011 11:06:50 +0000 (11:06 +0000)]
Merge perl_keyword.pl into regen/keywords.pl, to generate keywords.[ch]

Prepend + or - in front of all the keyword names in __DATA__ to mark weak and
strong keywords, needed for keyword.c

As keywords.c needs Devel::Tokenizer::C 0.05, not a core module (and not a
common module either) we can no longer run it as part of regen.pl. So store
the sha256 of the source in the generated files, and use this in to check that
they are not stale (in t/porting/regen.t)

10 years agoBreak out the generated function Perl_keywords() into keywords.c, a new file.
Nicholas Clark [Mon, 24 Jan 2011 10:30:51 +0000 (10:30 +0000)]
Break out the generated function Perl_keywords() into keywords.c, a new file.

As it and Perl_yylex() both need FEATURE_IS_ENABLED, feature_is_enabled() is
no longer static, and the two macro definitions move from toke.c to perl.h

Previously, one had to cut and paste the output of perl_keywords.pl into the
middle of toke.c, and it was not clear that it was generated code.

10 years agoPropagate 2 edits made in Perl_keywords() back to perl_keywords.pl
Nicholas Clark [Mon, 24 Jan 2011 09:43:21 +0000 (09:43 +0000)]
Propagate 2 edits made in Perl_keywords() back to perl_keywords.pl

7918f24d20384771 added PERL_ARGS_ASSERT_KEYWORD and 9b38784150c0aca5 combined
Perl_ckwarn_d() and Perl_warner() into Perl_ck_warner_d().

10 years agoregen/mk_PL_charclass.pl can test that l1_char_class_tab.h is up to date.
Nicholas Clark [Mon, 24 Jan 2011 08:11:44 +0000 (08:11 +0000)]
regen/mk_PL_charclass.pl can test that l1_char_class_tab.h is up to date.

10 years agoMove mk_PL_charclass.pl from Porting/ to regen/
Nicholas Clark [Mon, 24 Jan 2011 08:00:47 +0000 (08:00 +0000)]
Move mk_PL_charclass.pl from Porting/ to regen/

10 years agoConvert mk_PL_charclass.pl to use regen_lib.pl
Nicholas Clark [Mon, 24 Jan 2011 06:28:19 +0000 (06:28 +0000)]
Convert mk_PL_charclass.pl to use regen_lib.pl

Change it to read CaseFolding.txt from lib/unicore, instead of the file
installed with perl, so that it can run with an uninstalled perl.

Add "read only" editor blocks to l1_char_class_tab.h

10 years agoMove the non-generated parts of l1_char_class_tab.h out into handy.h
Nicholas Clark [Sun, 23 Jan 2011 21:51:23 +0000 (21:51 +0000)]
Move the non-generated parts of l1_char_class_tab.h out into handy.h

Now the contents of l1_char_class_tab.h is only the output of
Porting/mk_PL_charclass.pl

10 years agoOverride _fixin_replace_shebang on VMS so MM->fixin works.
Craig A. Berry [Mon, 24 Jan 2011 00:33:01 +0000 (18:33 -0600)]
Override _fixin_replace_shebang on VMS so MM->fixin works.

Script generation doesn't look like it's ever worked on VMS, but
this hasn't been that big a deal because all the utilities
distributed with the core have their own generation facilities
under utils/.  However, Nicholas wants to put that directory on
a diet and have the scripts be generated by the modules that own
them.

So we have to get script generation via MM->fixin working, and we
do that here by prepending the same $Config{startperl} incantation
to the shebang line that we've been using in core for eons.

Tracks upstream commit:

https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/commit/14ff930dd862286d6dafe4228b3a72415b5df9a5

10 years agoSplit shebang line fix-up from file processing in MM->fixin().
Craig A. Berry [Mon, 24 Jan 2011 00:30:56 +0000 (18:30 -0600)]
Split shebang line fix-up from file processing in MM->fixin().

By putting the shebang line gyrations on their own in the new
_fixin_replace_shebang method, we can override that part without
dragging along the file processing code.

Tracks upstream commit:

https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/commit/33d7db29a2adb5bbb12fb2a783063245fe58dfc1

10 years agot/porting/regen.t can test that regcharclass.h is up to date.
Nicholas Clark [Sun, 23 Jan 2011 21:29:12 +0000 (21:29 +0000)]
t/porting/regen.t can test that regcharclass.h is up to date.

As regen/regcharclass.pl uses regen_lib.pl and rename_if_different(), all that
is needed is to pass it --tap on the command line.

10 years agoMove regencharclass.pl from Porting/ to regen/
Nicholas Clark [Sun, 23 Jan 2011 21:08:12 +0000 (21:08 +0000)]
Move regencharclass.pl from Porting/ to regen/

10 years agoConvert regcharclass.pl to use regen_lib.pl
Nicholas Clark [Sun, 23 Jan 2011 21:03:05 +0000 (21:03 +0000)]
Convert regcharclass.pl to use regen_lib.pl

This results in small changes to the formatting of the generated comments
in regcharclass.h

10 years ago[perl #82650] Ignore DTrace build product
David Leadbeater [Sun, 23 Jan 2011 20:39:28 +0000 (12:39 -0800)]
[perl #82650] Ignore DTrace build product

10 years agoAvoid blank lines in META.yml
Nicholas Clark [Sun, 23 Jan 2011 19:15:23 +0000 (19:15 +0000)]
Avoid blank lines in META.yml

10 years agot/porting/regen.t can test that META.yml is up to date.
Nicholas Clark [Sun, 23 Jan 2011 18:42:39 +0000 (18:42 +0000)]
t/porting/regen.t can test that META.yml is up to date.

As Porting/makemeta uses regen_lib.pl and rename_if_different(), all that is
needed is to pass it --tap on the command line.

t/porting/regen.t now tests that all files mentioned in the release managers
guide are up to date (and tests will fail if they are not), hence there is now
no need for the release manager to explicitly test that generated files are
not stale.

10 years agoStore the SHA-256 of the source in files generated by regen_perly.pl
Nicholas Clark [Sun, 23 Jan 2011 18:29:20 +0000 (18:29 +0000)]
Store the SHA-256 of the source in files generated by regen_perly.pl

bison isn't available everywhere, so we can't simply re-run regen_perly.pl to
verify that perly.{act,h,tab} are up to date. So instead store the SHA-256 of
the input files, and extend t/porting/regen.t to check that the input files
haven't been changed subsequently.

10 years agoOutput "read only" editor blocks from regen_perly.pl
Nicholas Clark [Sun, 23 Jan 2011 16:25:30 +0000 (16:25 +0000)]
Output "read only" editor blocks from regen_perly.pl

Use safer_open() and read_only_bottom_close_and_rename() from regen_lib.pl
Consistently use 3 argument open and lexical file handles.

A side effect of this change is that the generated files are no longer made
read-only on disk - if this is desirable, then probably better to change
regen_lib.pl so that all generated files are made read-only.

10 years agoTracked down some other places to make the Unicode-Collate changes
Chris 'BinGOs' Williams [Sun, 23 Jan 2011 16:51:54 +0000 (16:51 +0000)]
Tracked down some other places to make the Unicode-Collate changes

10 years agoUpdate Unicode-Collate to CPAN version 0.72
Chris 'BinGOs' Williams [Sun, 23 Jan 2011 16:48:32 +0000 (16:48 +0000)]
Update Unicode-Collate to CPAN version 0.72

  Second attempt to integrate the XS version of
  Unicode::Collate into core.

  [DELTA]

  0.72  Sat Jan 22 17:28:32 2011
    - xs: fix mixing char* and U8*.

  0.71  Tue Jan 18 22:29:44 2011
    - t/loc_test.t should not fail without Unicode::Normalize.

  0.70  Sun Jan 16 20:31:07 2011
    - Now U::C::Locale->new will use the compiled DUCET via XS if available.
      added some tests in t/loc_test.t.

  0.69  Sat Jan 15 19:41:11 2011
    - clarified about XSUB. revised INSTALL in README.
    - xs: flag passed to utf8n_to_uvuni().
    - doc and comments: [perl #81876] Fix typos by Peter J. Acklam.

10 years agoUpdate ExtUtils::CBuilder in Maintainers.pl
David Golden [Sun, 23 Jan 2011 15:53:40 +0000 (10:53 -0500)]
Update ExtUtils::CBuilder in Maintainers.pl

10 years agobump ExtUtils::CBuilder version numbers
David Golden [Sun, 23 Jan 2011 15:29:41 +0000 (10:29 -0500)]
bump ExtUtils::CBuilder version numbers

10 years agoIn regen scripts, print to explicit file handles instead of using select.
Nicholas Clark [Sun, 23 Jan 2011 11:15:14 +0000 (11:15 +0000)]
In regen scripts, print to explicit file handles instead of using select.

Also put explicit quotes on heredoc declarations to show whether they should
interpolate, merge some heredocs, and remove & from calls to &tab(...)

10 years agoMove the duplicated subroutine tab() into regen_lib.pl
Nicholas Clark [Sun, 23 Jan 2011 10:51:29 +0000 (10:51 +0000)]
Move the duplicated subroutine tab() into regen_lib.pl

10 years agoChange close_and_rename() to read_only_bottom_close_and_rename()
Nicholas Clark [Sun, 23 Jan 2011 10:38:58 +0000 (10:38 +0000)]
Change close_and_rename() to read_only_bottom_close_and_rename()

All users of close_and_rename() were printing out the appropriate "ex: set ro:"
string to the file handle immediately before closing it. So move that into
the common function and rename it to reflect what it now does. [Except
overload.pl, which should have been, given that it calls read_only_top()]

Print a newline above the "ex: set ro:" line. This removes many newlines from
the regen scripts, but does add newlines to a couple of generated files.

10 years agoIn regen/*.pl, refactor the repeated code for close and rename if different.
Nicholas Clark [Sun, 23 Jan 2011 10:07:52 +0000 (10:07 +0000)]
In regen/*.pl, refactor the repeated code for close and rename if different.

Pass the final file name as an optional second argument of safer_open() and
store it with the file handle. Add a function close_and_rename() which closes
the file handle, then retrieves the final name, and renames the temporary file
if the two differ.

10 years agoIn regen_lib.pl, when opening, first unlink a previous file of that name.
Nicholas Clark [Sun, 23 Jan 2011 09:39:21 +0000 (09:39 +0000)]
In regen_lib.pl, when opening, first unlink a previous file of that name.

Previously regcomp.pl had an explicit unlink for the file it creates, but none
of the other regen/*.pl scripts did. Also, remove commented out code relating
to unlink.

10 years agoIn regen_lib.pl use a meaningful key for storing the file's name.
Nicholas Clark [Sun, 23 Jan 2011 09:15:58 +0000 (09:15 +0000)]
In regen_lib.pl use a meaningful key for storing the file's name.

regen_lib.pl is actually using the hash slot of the typeglob, not the scalar
slot. Typeglob syntax is particularly confusing and prone to errors, although
in this case it doesn't make any behaviour difference.

10 years agoFrom: Benny Siegert <bsiegert@gmail.com>
H.Merijn Brand [Sun, 23 Jan 2011 09:17:39 +0000 (10:17 +0100)]
From: Benny Siegert <bsiegert@gmail.com>
Date: Thu, 20 Jan 2011 19:27:04 +0100
Subject: [PATCH] MirBSD: fix rpath for shared libperl

If you build perl with a shared libperl.so on MirBSD (the default config),
it will work up to the installation; however, once installed, it will be
unable to find libperl. Treat rpath handling like in the other BSD
dialects.

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
10 years agoopcode.pl hasn't generated files named *-old since 2008, so don't delete them.
Nicholas Clark [Sun, 23 Jan 2011 07:59:25 +0000 (07:59 +0000)]
opcode.pl hasn't generated files named *-old since 2008, so don't delete them.

Commit b6b9a09997c80269 removed the last vestiges of the code that generated
any files named *-old, but the code to clean them up remained. It serves no
purpose.

10 years agoregen/overload.pl should use rename_if_different() for lib/overload/numbers.pm
Nicholas Clark [Sun, 23 Jan 2011 07:35:47 +0000 (07:35 +0000)]
regen/overload.pl should use rename_if_different() for lib/overload/numbers.pm

It was the only file generated by any of the regen/*.pl scripts which was
always written out directly, instead of first creating a temporary file, and
only moving that if successfully generated (and different).

10 years agoMove all the generated file header printing into read_only_top()
Nicholas Clark [Sun, 23 Jan 2011 00:09:24 +0000 (00:09 +0000)]
Move all the generated file header printing into read_only_top()

Previously all the scripts in regen/ had code to generate header comments
(buffer-read-only, "do not edit this file", and optionally regeneration
script, regeneration data, copyright years and filename).

This change results in some minor reformatting of header blocks, and
standardises the copyright line as "Larry Wall and others".

10 years agoUpdate TOC for perl51310delta
Jesse Vincent [Sat, 22 Jan 2011 23:58:39 +0000 (18:58 -0500)]
Update TOC for perl51310delta

10 years agoperldelta for 5.13.10
Jesse Vincent [Sat, 22 Jan 2011 23:57:46 +0000 (18:57 -0500)]
perldelta for 5.13.10

10 years agoIn embed.pl, move the logic for perlapi.c's Tolkien quote out from do_not_edit()
Nicholas Clark [Sat, 22 Jan 2011 23:29:59 +0000 (23:29 +0000)]
In embed.pl, move the logic for perlapi.c's Tolkien quote out from do_not_edit()

Previously do_not_edit() has a special case for this based on the filename
parameter. Now the code to add the comment is next to the relevant call to
do_not_edit().

10 years ago"Don't repeat yourself" in regen/opcode.pl
Nicholas Clark [Sat, 22 Jan 2011 22:19:45 +0000 (22:19 +0000)]
"Don't repeat yourself" in regen/opcode.pl

10 years agoRemove Mac OS classic special case code from Cwd's cwd.t
Nicholas Clark [Sat, 22 Jan 2011 20:15:05 +0000 (20:15 +0000)]
Remove Mac OS classic special case code from Cwd's cwd.t

10 years agoConvert File::Spec's remaining tests to Test::More from Test.
Nicholas Clark [Sat, 22 Jan 2011 19:56:41 +0000 (19:56 +0000)]
Convert File::Spec's remaining tests to Test::More from Test.

10 years agoRemove Mac OS classic only tests from Cwd's Spec.t
Nicholas Clark [Sat, 22 Jan 2011 19:17:36 +0000 (19:17 +0000)]
Remove Mac OS classic only tests from Cwd's Spec.t

As MacOS was the only platform with platform-only tests, we can also remove the
entire skip-if-not-this-platform infrastructure. Also, as tryfunc() is only
called from one place, inline it.

10 years agoConvert I18N::LangTags to Test::More from Test.
Nicholas Clark [Sat, 22 Jan 2011 18:18:27 +0000 (18:18 +0000)]
Convert I18N::LangTags to Test::More from Test.

10 years agoRemove duplicate test for $ENV{LANG} in I18N::LangTags test 80_all_env.t
Nicholas Clark [Sat, 22 Jan 2011 17:34:28 +0000 (17:34 +0000)]
Remove duplicate test for $ENV{LANG} in I18N::LangTags test 80_all_env.t

10 years agoConvert Net::Ping's tests to use Test::More from Test.
Nicholas Clark [Sat, 22 Jan 2011 16:21:35 +0000 (16:21 +0000)]
Convert Net::Ping's tests to use Test::More from Test.

10 years agoChanges: correct mis-indentation introduced in dc7c5368d1
Ævar Arnfjörð Bjarmason [Sat, 22 Jan 2011 14:11:39 +0000 (14:11 +0000)]
Changes: correct mis-indentation introduced in dc7c5368d1

Michael Stevens corrected the link to the 5.10.0 tarball in
dc7c5368d173865841aa41764f828d34e663e0bc, but changed four spaces to a
tab in the process.

Since Changes does not otherwise use tabs for indenting convert this
back to four spaces.

Signed-off-by: Ævar Arnfjörð Bjarmason <avar@cpan.org>
10 years agoStop EU::CBuilder's tests from failing in parallel
Florian Ragwitz [Sat, 22 Jan 2011 08:03:20 +0000 (09:03 +0100)]
Stop EU::CBuilder's tests from failing in parallel

It used to use the same paths for temporary files in all tests. This blew up
randomly when the tests were run in parallel.

10 years agoUpdate Changes and bump Module::CoreList to 2.44 for a CPAN release
Chris 'BinGOs' Williams [Sat, 22 Jan 2011 13:08:05 +0000 (13:08 +0000)]
Update Changes and bump Module::CoreList to 2.44 for a CPAN release

10 years agofix 5.12.3 release date
Ricardo Signes [Sat, 22 Jan 2011 12:39:52 +0000 (07:39 -0500)]
fix 5.12.3 release date

10 years agoadd 5.12.3 hsitory to perlhist
Ricardo Signes [Sat, 22 Jan 2011 12:36:22 +0000 (07:36 -0500)]
add 5.12.3 hsitory to perlhist

10 years agoConvert buildtoc to lexical file handles and 3-arg open.
Nicholas Clark [Sat, 22 Jan 2011 12:37:53 +0000 (12:37 +0000)]
Convert buildtoc to lexical file handles and 3-arg open.

In the refactoring, I don't see any reason to retain void context explicit
close of lexical filehandles opened for reading.

10 years agoExtend pod/buildtoc --test to validate that regenerated files are up to date.
Nicholas Clark [Sat, 22 Jan 2011 12:21:45 +0000 (12:21 +0000)]
Extend pod/buildtoc --test to validate that regenerated files are up to date.

10 years agoIn buildtoc, only have entries in %Build for targets being built.
Nicholas Clark [Sat, 22 Jan 2011 12:05:22 +0000 (12:05 +0000)]
In buildtoc, only have entries in %Build for targets being built.

Also, use the file names as values. Effectively now it is a slice of %Targets,
containing just things to be built.

Previously it held all targets (and the phony 'all' target), and had
defined/undefined values for whether they should be built.

10 years agoIn buildtoc, only "find all the modules" if rebuilding pod/perltoc.pod
Nicholas Clark [Sat, 22 Jan 2011 11:35:12 +0000 (11:35 +0000)]
In buildtoc, only "find all the modules" if rebuilding pod/perltoc.pod

The results of the expensive scan aren't needed for any of the other targets.

10 years agoIn buildtoc, rename &output_perltoc to &do_toc, and integrate its invocation.
Nicholas Clark [Sat, 22 Jan 2011 11:25:34 +0000 (11:25 +0000)]
In buildtoc, rename &output_perltoc to &do_toc, and integrate its invocation.

There is still some special casing, as all other targets modify an existing
file, but with this change more code is shared.

10 years agoIn buildtoc, pull the sanity check for NUL bytes to the top level.
Nicholas Clark [Sat, 22 Jan 2011 11:15:14 +0000 (11:15 +0000)]
In buildtoc, pull the sanity check for NUL bytes to the top level.

It's needed in 3 of the do_* routines, and causes no problems for the others.

10 years agoIn buildtoc, convert all the do_* functions to taking 2 scalars.
Nicholas Clark [Sat, 22 Jan 2011 11:05:08 +0000 (11:05 +0000)]
In buildtoc, convert all the do_* functions to taking 2 scalars.

Previously they took a list of lines from the file, and all except
do_manifest() immediately joined it back to a single scalar. Instead, slurp
the file in whole, and do_manifest() split it out.

Also, change the code that invokes do_* to accept only a scalar as a return,
now that all functions return a scalar, rather than (potentially) a list to
join.

10 years agoIn buildtoc, convert do_manifest() to returning a scalar.
Nicholas Clark [Sat, 22 Jan 2011 10:51:37 +0000 (10:51 +0000)]
In buildtoc, convert do_manifest() to returning a scalar.

Previously it (alone of the do_* functions) returned a list for the regenerated
file's contents.

10 years agoRe-add 5.12.3's release date to Module::Corelist.
Nicholas Clark [Sat, 22 Jan 2011 09:34:11 +0000 (09:34 +0000)]
Re-add 5.12.3's release date to Module::Corelist.

This was missed by change 57e52dbefae98516, which reverted 01bc7817c9b86c12,
because 5.12.3's release date was removed as an inadvertent side effect of
e0698539c3e1cd22, the change to add 5.13.9

10 years agoAdd perl5123delta.pod to MANIFEST and pod.lst, after f1d4662fac7469d5.
Nicholas Clark [Sat, 22 Jan 2011 09:15:39 +0000 (09:15 +0000)]
Add perl5123delta.pod to MANIFEST and pod.lst, after f1d4662fac7469d5.

re-run pod/buildtoc to propagate the new file to the relevant platform
makefiles.

10 years agopick perl5123delta.pod from maint-5.12
Ricardo Signes [Sat, 22 Jan 2011 03:13:50 +0000 (22:13 -0500)]
pick perl5123delta.pod from maint-5.12

10 years agore-add 5.12.3 versions
Ricardo Signes [Sat, 22 Jan 2011 03:12:37 +0000 (22:12 -0500)]
re-add 5.12.3 versions

10 years agofix bizarre date typo in 5.12.2 epigraph
Ricardo Signes [Sat, 22 Jan 2011 03:09:53 +0000 (22:09 -0500)]
fix bizarre date typo in 5.12.2 epigraph

10 years agoadd v5.12.3 epigram
Ricardo Signes [Sat, 22 Jan 2011 03:09:26 +0000 (22:09 -0500)]
add v5.12.3 epigram

10 years ago[perl #82526] Fix kldp links.
Michael Stevens [Thu, 20 Jan 2011 13:49:18 +0000 (13:49 +0000)]
[perl #82526] Fix kldp links.

10 years agoFix an invalid =item warning.
Michael Stevens [Mon, 17 Jan 2011 18:23:15 +0000 (18:23 +0000)]
Fix an invalid =item warning.

10 years agoAutomate current perldelta entry in vms/descrip_mms.template.
Craig A. Berry [Fri, 21 Jan 2011 21:55:32 +0000 (15:55 -0600)]
Automate current perldelta entry in vms/descrip_mms.template.

pod/buildtoc knows which one is current, so we might as well
substitute it in one place and be done with it.

10 years agoUpdated CPAN.pm to CPAN version 1.94_64
David Golden [Fri, 21 Jan 2011 22:01:33 +0000 (17:01 -0500)]
Updated CPAN.pm to CPAN version 1.94_64

[DELTA]

2011-01-20  David Golden <dagolden@cpan.org>

  * release 1.94_64

  * remove 'use_file_homedir' config option and fix #62986 using
  a more robust method. Original config directories will be found
  even if File::HomeDir is installed

  * streamline configuration intro text

  * add missing documentation for 'atexit' and local::lib bootstrap

10 years agoclear up unused var warning in prev patch
Chip Salzenberg [Fri, 21 Jan 2011 20:54:08 +0000 (12:54 -0800)]
clear up unused var warning in prev patch

10 years agoFix up MANIFEST and update Maintainers.pl for ExtUtils::CBuilder
David Golden [Fri, 21 Jan 2011 20:44:52 +0000 (15:44 -0500)]
Fix up MANIFEST and update Maintainers.pl for ExtUtils::CBuilder

10 years agoUpdate Maintainers.pl for ExtUtils-CBuilder-0.280201
David Golden [Fri, 21 Jan 2011 20:43:53 +0000 (15:43 -0500)]
Update Maintainers.pl for ExtUtils-CBuilder-0.280201

10 years agoremove Changes file from dist/ExtUtils-CBuilder
David Golden [Fri, 21 Jan 2011 20:38:19 +0000 (15:38 -0500)]
remove Changes file from dist/ExtUtils-CBuilder

10 years agoSince xmldump_packsubs does not actually output XML, don't call it from xmldump_all.
Chip Salzenberg [Fri, 21 Jan 2011 20:41:51 +0000 (12:41 -0800)]
Since xmldump_packsubs does not actually output XML, don't call it from xmldump_all.

10 years agoDon't export PerlIORaw_open if it doesn't exist anymore.
Craig A. Berry [Fri, 21 Jan 2011 19:12:13 +0000 (13:12 -0600)]
Don't export PerlIORaw_open if it doesn't exist anymore.

Follow-up to ecfd064986aef03b9b7d8b56da83ae37ff435721.

10 years agoPerlIO_push returns NULL, not -1, on failure.
Craig A. Berry [Fri, 21 Jan 2011 19:08:05 +0000 (13:08 -0600)]
PerlIO_push returns NULL, not -1, on failure.

Follow-up to 81fe74fb3f93457df8e864c91546ac6b860657fc.

10 years agoRT #75870 perldata.pod tied hash in scalar context
David Mitchell [Fri, 21 Jan 2011 17:23:51 +0000 (17:23 +0000)]
RT #75870 perldata.pod tied hash in scalar context

update inaccurate description.

10 years agoAdd x-references in pods to new /a, etc.
Karl Williamson [Fri, 21 Jan 2011 16:55:28 +0000 (09:55 -0700)]
Add x-references in pods to new /a, etc.

10 years agoIn buildtoc, eliminate a substitution which mangles nested package names.
Nicholas Clark [Fri, 21 Jan 2011 16:58:28 +0000 (16:58 +0000)]
In buildtoc, eliminate a substitution which mangles nested package names.

It's not clear what the intent of s/(\w+)::\1/$1/; was, but it converts
"autodie::exception" to "autodiexception" (etc), which is clearly buggy.
The regexp has been in pod/buildtoc since it was added in cb1a09d0194fed9b.

10 years agoIn buildtoc, move the local $/ = ''; to the scope of the file it relates to.
Nicholas Clark [Fri, 21 Jan 2011 16:29:18 +0000 (16:29 +0000)]
In buildtoc, move the local $/ = ''; to the scope of the file it relates to.

10 years agoIn buildtoc, refactor the flow logic in podset() to avoid most uses of next.
Nicholas Clark [Fri, 21 Jan 2011 16:17:30 +0000 (16:17 +0000)]
In buildtoc, refactor the flow logic in podset() to avoid most uses of next.

10 years ago[perl #81750] Perl 5.12: undef-as-hashref bug
Father Chrysostomos [Fri, 21 Jan 2011 16:26:50 +0000 (08:26 -0800)]
[perl #81750] Perl 5.12: undef-as-hashref bug

The addition of the boolkeys op type in commit 867fa1e2d did not
account for the fact that rv2hv (%{}) can sometimes return undef
(%$undef with strict refs turned off).

When the boolkeys op is created (and the rv2hv becomes its kid), the
rv2hv is flagged with OPf_REF, meaning that it must return a hash, not
the contents.

Perl_softrefxv in pp.c checks for that flag. If it is set, it dies
with ‘Can't use an undefined value as a HASH reference’ for unde-
fined values.

This commit changes it to make an exception if rv2hv->op_next is a
boolkeys op. It also changes pp_boolkeys to account for undef.

10 years agoIn buildtoc, eliminate the now vestigial sub output.
Nicholas Clark [Fri, 21 Jan 2011 15:06:19 +0000 (15:06 +0000)]
In buildtoc, eliminate the now vestigial sub output.