platform/upstream/perl.git
13 years agoAdd skip_all_if_miniperl() to test.pl, and use it in 6 test scripts
Nicholas Clark [Mon, 21 Feb 2011 14:14:30 +0000 (14:14 +0000)]
Add skip_all_if_miniperl() to test.pl, and use it in 6 test scripts

All require dynamic loading to work, so all should be skipped under minitest.

13 years agoSkip reg_namedcapture.t when run by miniperl
Nicholas Clark [Mon, 21 Feb 2011 14:00:30 +0000 (14:00 +0000)]
Skip reg_namedcapture.t when run by miniperl

miniperl has no dynamic loading, so cannot load Tie::Hash::NamedCapture.

13 years agoIn t/TEST, automatically detect if running under miniperl
Nicholas Clark [Mon, 21 Feb 2011 13:31:57 +0000 (13:31 +0000)]
In t/TEST, automatically detect if running under miniperl

Set $ENV{PERL_CORE_MINITEST} based on defined &DynaLoader::boot_DynaLoader,
instead of relying on a -minitest parameter. &DynaLoader::boot_DynaLoader is
undefined in miniperl, defined in perl, for both -Dusedl and -Uusedl

13 years agoIn switchI.t, use nolib => 1 to make the tests pass on miniperl once more.
Nicholas Clark [Mon, 21 Feb 2011 11:47:58 +0000 (11:47 +0000)]
In switchI.t, use nolib => 1 to make the tests pass on miniperl once more.

fresh_perl_is() defaults to automatically prefixing the test perl's arguments
with -I../lib, which (now) causes miniperl to find ../lib/buildcustomize.pl,
which (when found and run) resets @INC, perturbing the tests. Suppressing the
automatic addition of -I../lib avoids these problems.

Also, fold together the two adjacent BEGIN blocks at the start of the script.

13 years agoIn runenv.t, don't automatically add -I../lib to the test program's arguments.
Nicholas Clark [Mon, 21 Feb 2011 11:29:27 +0000 (11:29 +0000)]
In runenv.t, don't automatically add -I../lib to the test program's arguments.

Instead, add -I../lib explicitly to the program's arguments when needed.
This makes the test pass with miniperl, and simplifies the later tests which
inspect the entirety of @INC.

miniperl will have been failing since 5e4c4c91bd52a48d, because it now loads
$INC[0]/buildcustomize.pl if present, resetting @INC, and always providing
-I../lib will cause it to find the buildcustomize.pl script.

13 years agoRefactor t/run/runenv.t to use lexical file handles.
Nicholas Clark [Mon, 21 Feb 2011 11:09:11 +0000 (11:09 +0000)]
Refactor t/run/runenv.t to use lexical file handles.

Also print out $! in open failure diagnostics.

13 years agoIn runenv.t, inline runperl() into try(), its only caller.
Nicholas Clark [Mon, 21 Feb 2011 10:33:12 +0000 (10:33 +0000)]
In runenv.t, inline runperl() into try(), its only caller.

d5226c4c8f9a2932e broke runperl_and_capture() out from runperl(), but didn't
notice that there was only one caller for runperl(). Change try() to use
is() for testing each of STDOUT and STDERR, instead of an explicit test,
explicit diagnostics, and a summary to ok(). This increases the tests run,
hence the plan needs changing.

Also inline it_didnt_work() into runperl_and_capture(), and remove the END
block that deletes the temporary files, which has been vestigial since
2d90ac9586ffb5c7 converted runenv.t to use test.pl's tmpfile().

13 years agoperlfunc/eval: note the discrepancy in list context retvals
Father Chrysostomos [Mon, 21 Feb 2011 05:37:07 +0000 (21:37 -0800)]
perlfunc/eval: note the discrepancy in list context retvals

13 years agoIncrease CoreList’s version
Father Chrysostomos [Mon, 21 Feb 2011 05:33:51 +0000 (21:33 -0800)]
Increase CoreList’s version

to silence cmp_version.t

13 years agoperlfunc: do SUBROUTINE(LIST)
Father Chrysostomos [Mon, 21 Feb 2011 02:40:24 +0000 (18:40 -0800)]
perlfunc: do SUBROUTINE(LIST)

perlsub does not mention this anymore.

Even though it’s deprecated, it should still be documented properly

13 years agoEven more perlfunc tweaks
Father Chrysostomos [Mon, 21 Feb 2011 02:38:43 +0000 (18:38 -0800)]
Even more perlfunc tweaks

13 years agoUpdate docs for postfix /dual flags
Father Chrysostomos [Sun, 20 Feb 2011 22:17:19 +0000 (14:17 -0800)]
Update docs for postfix /dual flags

13 years agomore perlfunc tweaks
Father Chrysostomos [Sun, 20 Feb 2011 06:06:27 +0000 (22:06 -0800)]
more perlfunc tweaks

13 years agoUpdate TOC for perl51310delta
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 20:00:03 +0000 (20:00 +0000)]
Update TOC for perl51310delta

Quoth Porting/perldelta_template.pod:

    "Run C<perl pod/buildtoc --build-all> to update the F<perldelta>
    version in the following files:

        MANIFEST
        Makefile.SH
        pod.lst
        pod/perl.pod
        vms/descrip_mms.template
        win32/Makefile
        win32/makefile.mk
        win32/pod.mak"

13 years agopod.lst: bump perldelta from 5.13.10 to 5.13.11
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:52:44 +0000 (19:52 +0000)]
pod.lst: bump perldelta from 5.13.10 to 5.13.11

Quoth Porting/release_managers_guide.pod:

    "Edit F<pod.lst>: add the new entry, flagged as 'd', and unflag
    the previous entry from being 'd'; for example:

        -d perl5101delta                Perl changes in version 5.10.1
        +d perl5102delta                Perl changes in version 5.10.2
        +  perl5101delta                Perl changes in version 5.10.1"

13 years agoCorrect the version of Module::CoreList that was released with v5.12.3
Chris 'BinGOs' Williams [Sun, 20 Feb 2011 19:22:39 +0000 (19:22 +0000)]
Correct the version of Module::CoreList that was released with v5.12.3

13 years agoclean up epigraphs file
Zefram [Sun, 20 Feb 2011 19:49:19 +0000 (19:49 +0000)]
clean up epigraphs file

Sort the epigraphs consistently (by version number).  Remove duplicate
entries.  Consistent formatting of per-version headings.

13 years agopod/perldelta.pod: copied from Porting/perldelta_template.pod
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:46:47 +0000 (19:46 +0000)]
pod/perldelta.pod: copied from Porting/perldelta_template.pod

Moved from Porting/perldelta_template.pod pod/perldelta.pod and munged
the version numbers in the NAME and DESCRIPTION sections.

Quoth Porting/release_managers_guide.pod:

    "Then create a new empty perldelta.pod file for the new release;
    see F<Porting/how_to_write_a_perldelta.pod>.

    You should be able to do this by just copying in a skeleton
    template and then doing a quick fix up of the version numbers."

13 years agopod/perl51310delta.pod: moved from pod/perldelta.pod
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:39:40 +0000 (19:39 +0000)]
pod/perl51310delta.pod: moved from pod/perldelta.pod

Move the perldelta for 5.13.10 to pod/perl51310delta.pod in
preparation for adding one for 5.13.11 under pod/perldelta.pod.

Quoth Porting/release_managers_guide.pod:

    "Then, move the existing F<pod/perldelta.pod> to
    F<pod/perlNNNdelta.pod>.

    Now edit the moved delta file to change the C<NAME> from
    C<perldelta> to C<perlNNNdelta>."

13 years agopod/.gitignore: ignore the generated 5.13.11 delta
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:36:19 +0000 (19:36 +0000)]
pod/.gitignore: ignore the generated 5.13.11 delta

Quoth Porting/release_managers_guide.pod:

    "First, update the F<.gitignore> file in the F<pod/> folder to
    ignore the next release's generated F<pod/perlNNNdelta.pod> file
    rather than this releases's one which we are about to set in stone
    (where NNN is the perl version number without the dots. i.e. 5135
    for 5.13.5)."

13 years agoPorting/epigraphs.pod: add NNTP link to v5.13.10 epigraph
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:29:49 +0000 (19:29 +0000)]
Porting/epigraphs.pod: add NNTP link to v5.13.10 epigraph

I wouldn't have had to do this if I committed the epigraph after the
release, but having it in the release tag was my little rebellion.

13 years agoModule::CoreList: bump from 2.44_01 to 2.45
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 19:02:01 +0000 (19:02 +0000)]
Module::CoreList: bump from 2.44_01 to 2.45

I bumped this from 2.44 to 2.44_01 for 5.13.10 because that's what
Jesse did for 5.13.9, but that was an exceptional case:

    <Bingos> it was a special case for v5.13.9 because of the v5.12.3
             release being in the same week.

13 years agoPorting/epigraphs.pod: add v5.13.10 epigraph
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 17:50:30 +0000 (17:50 +0000)]
Porting/epigraphs.pod: add v5.13.10 epigraph

Good luck feeding this to Google Translate.

13 years agoPorting/release_managers_guide.pod: about smokers and BLEAD
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:44:21 +0000 (18:44 +0000)]
Porting/release_managers_guide.pod: about smokers and BLEAD

Note that you don't have to wait for smokers for a BLEAD release,
because there simply isn't time.

13 years agoPorting/release_managers_guide.pod: note the NNTP url to smoke reports
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:39:08 +0000 (18:39 +0000)]
Porting/release_managers_guide.pod: note the NNTP url to smoke reports

Add a link to
http://www.nntp.perl.org/group/perl.daily-build.reports/, which has
the reports aggregated on http://doc.procura.nl/smoke/index.html in
raw format.

13 years agopod/perlhist.pod: add myself to "THE KEEPERS OF THE PUMPKIN"
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:31:17 +0000 (18:31 +0000)]
pod/perlhist.pod: add myself to "THE KEEPERS OF THE PUMPKIN"

Quoth Porting/release_managers_guide.pod:

    "make sure that his or her name is listed in the section entitled
     THE KEEPERS OF THE PUMPKIN".

Reported-by: Florian Ragwitz <rafl@debian.org>
13 years agot/re/re.t: remove leftover diag() debugging in 94b03d7d
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:25:04 +0000 (18:25 +0000)]
t/re/re.t: remove leftover diag() debugging in 94b03d7d

Remove some leftover diag() calls added by Karl Williamson in
94b03d7d.

13 years agopod/perldelta.pod: add a space before the version number
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:15:49 +0000 (18:15 +0000)]
pod/perldelta.pod: add a space before the version number

13 years agopod/perldelta.pod: remove unused Security section
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:14:10 +0000 (18:14 +0000)]
pod/perldelta.pod: remove unused Security section

There was nothing in it, so there's no need for it to be there.

13 years agopod/perldelta.pod: close unbalanced parenthesis
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 18:13:16 +0000 (18:13 +0000)]
pod/perldelta.pod: close unbalanced parenthesis

See http://xkcd.com/859/ for why.

13 years agoPorting/release_managers_guide.pod: correct path to perlivp
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 17:49:46 +0000 (17:49 +0000)]
Porting/release_managers_guide.pod: correct path to perlivp

Change the path to perlivp from bin/perlivp to utils/perlivp. Also
instruct the release manager to run it with ./perl instead of perl
because we want to dogfood more things during the release.

13 years agoRevert "fold_grind.t: Test multi-char folds"
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 16:10:28 +0000 (16:10 +0000)]
Revert "fold_grind.t: Test multi-char folds"

This reverts commit 55efcec6eaba5f71068ad86a17184a439d10bad8.

Conflicts:

t/re/fold_grind.t

55efcec6eaba5f71068ad86a17184a439d10bad8 added new tests for
multi-char folds. These fail on Solaris and some other systems. It's
probably turning up bugs we had all along, but since I'm about to
release 5.13.10 I'm going to revert this for now, we can debug Solaris
et al later and apply this thes.

Acked-by: Karl Williamson <public@khwilliamson.com>
13 years agopod/perlhist.pod: mention that 5.13.10 is released today
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:45:44 +0000 (00:45 +0000)]
pod/perlhist.pod: mention that 5.13.10 is released today

13 years agodist/Module-CoreList/Changes: bump to 2.44_01
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 15:45:50 +0000 (15:45 +0000)]
dist/Module-CoreList/Changes: bump to 2.44_01

Quoth Porting/release_managers_guide.pod:

    "Also edit Module::CoreList's new version number in its F<Changes>
    file."

13 years agoModule::CoreList: update CAVEATS section with 5.13.9 and 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:37:51 +0000 (00:37 +0000)]
Module::CoreList: update CAVEATS section with 5.13.9 and 5.13.10

Update the CAVEATS section to mention 5.13.9 and 5.13.10. This was
forgotten around 5.13.9.

13 years agoUpdate Module::CoreList for 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:35:46 +0000 (00:35 +0000)]
Update Module::CoreList for 5.13.10

I haven't updated the Changes and the META.yml file. This wasn't done
for 5.13.9, maybe it only needs to happen afterwards and
release_managers_guide.pod is wrong.

TODO: investigate that

Bumped to 2.44_01 (a dev release I don't expect to be CPANed on its
own). Doing it like Jesse Vincent in e0698539c3. Quoth
Porting/release_managers_guide.pod:

    "Edit the version number in the new C<< 'Module::CoreList' =>
    'X.YZ' >> entry, as that is likely to reflect the previous version
    number."

13 years agoPorting/release_managers_guide.pod: Module::CoreList has no META.yml file
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 15:41:15 +0000 (15:41 +0000)]
Porting/release_managers_guide.pod: Module::CoreList has no META.yml file

During my in-progress release:

    $ git --no-pager grep 2.44 -- ./dist/Module-CoreList/
    dist/Module-CoreList/Changes:2.44    Sat Jan 22 2011
    dist/Module-CoreList/lib/Module/CoreList.pm:$VERSION = '2.44_01';
    dist/Module-CoreList/lib/Module/CoreList.pm:    'Module::CoreList'      => '2.44_01',

It doesn't have a META.yml anymore, instead a MYMETA.yml is generated
for us. So the bit that told us to update it in
Porting/release_managers_guide.pod was out of date.

13 years agoFix timing issues with test in sigdispatch.t on certain BSDs
Leon Timmermans [Sun, 20 Feb 2011 15:30:59 +0000 (15:30 +0000)]
Fix timing issues with test in sigdispatch.t on certain BSDs

Signed-off-by: Chris 'BinGOs' Williams <chris@bingosnet.co.uk>
13 years agoPorting/release_managers_guide.pod: update pod2html example path
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 15:26:15 +0000 (15:26 +0000)]
Porting/release_managers_guide.pod: update pod2html example path

pod2html is no longer in pod/pod2html, it's in
ext/Pod-Html/pod2html. Also change the example to use ./perl instead
of perl to make sure we dogfood as much as possible.

13 years agopod/perldelta.pod: fill in Acknowledgements for 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:18:37 +0000 (00:18 +0000)]
pod/perldelta.pod: fill in Acknowledgements for 5.13.10

Fill in the Acknowledgements in pod/perldelta.pod for 5.13.10, quoth
Porting/release_managers_guide.pod:

    "Finalize the perldelta. In particular, fill in the
    Acknowledgements section. You can generate a list of contributors
    with checkAUTHORS.pl"

The 63000 lines of changes is the sum of added and deleted in:

    git diff --stat v5.13.9..blead

13 years agoPorting/release_managers_guide.pod: show how to get the numbers in the Acknowledgemen...
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 15:17:38 +0000 (15:17 +0000)]
Porting/release_managers_guide.pod: show how to get the numbers in the Acknowledgements section

Update the instructions for the Acknowledgements section to show how
you can get the number of changed files and lines.

13 years agoChanges: bump git log commands to 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:11:04 +0000 (00:11 +0000)]
Changes: bump git log commands to 5.13.10

Quoth Porting/release_managers_guide.pod:

    "Update the Changes file to contain the git log command which
    would show all the changes in this release. You will need assume
    the existence of a not-yet created tag for the forthcoming
    release;"

13 years agoINSTALL: Bump for 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 15:03:50 +0000 (15:03 +0000)]
INSTALL: Bump for 5.13.10

Quoth Porting/release_managers_guide.pod:

    Review and update INSTALL to account for the change in version
    number; in particular, the "Coexistence with earlier versions of
    perl 5" section.

    Be particularly careful with the section "Upgrading from 5.X.Y or
    earlier". For stable releases, this needs to refer to the last
    release in the previous development cycle. For blead releases, it
    needs to refer to the previous blead release.

13 years agoBump the perl version in various places to 5.13.10
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:07:32 +0000 (00:07 +0000)]
Bump the perl version in various places to 5.13.10

Done with:

    ./perl -Ilib Porting/bump-perl-version -s 5.13.9 5.13.10 > /tmp/scan
    ./perl -Ilib Porting/bump-perl-version -u < /tmp/scan

And then manually editing the README.vms file to update the vmstar
example.

13 years agopod/perldelta.pod: typo in 94b03d7d -> s/meaing/meaning/
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 14:58:10 +0000 (14:58 +0000)]
pod/perldelta.pod: typo in 94b03d7d -> s/meaing/meaning/

13 years agopod/perldelta.pod: remove XXX entries
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 14:49:28 +0000 (14:49 +0000)]
pod/perldelta.pod: remove XXX entries

Remove all the XXX entries in the template perldelta.pod. Also move
the note about the perlbug change to the "Utility Changes" section,
and uniformly turn "=item * $FOO" sections into "=item *\n\n$FOO"
sections.

13 years agoPorting/release_managers_guide.pod: don't disarm patchlevel for SNAPSHOT/BLEAD
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 02:03:17 +0000 (02:03 +0000)]
Porting/release_managers_guide.pod: don't disarm patchlevel for SNAPSHOT/BLEAD

The section for arming the patchlevel change says "You MUST SKIP this
step for SNAPSHOT or BLEAD release", but the corresponding section for
disarming it doesn't mention it. Fix that.

13 years agoPorting/release_managers_guide.pod: remove needless Win32 special case
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 02:00:29 +0000 (02:00 +0000)]
Porting/release_managers_guide.pod: remove needless Win32 special case

Instead of mentioning that the user can run a commant with '' on Unix
and "" on Windows just give everyone the example with "" quotes. It
works fine on Unix as well.

13 years agoPorting/release_managers_guide.pod: mention Module::CoreList's CAVEATS section
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 00:40:17 +0000 (00:40 +0000)]
Porting/release_managers_guide.pod: mention Module::CoreList's CAVEATS section

Change release_managers_guide.pod to mention that Module::CoreList
CAVEATS should be updated. This was forgotten when the 5.13.9 release
was made, let's not forget it again.

13 years agoPorting/epigraphs.pod: add v5.13.9 epigraph
Ævar Arnfjörð Bjarmason [Sun, 20 Feb 2011 02:09:04 +0000 (02:09 +0000)]
Porting/epigraphs.pod: add v5.13.9 epigraph

Add the v5.13.9 epigraph by Jesse Vincent and POD-ify it to link to
the raw speech on Wikisource. Taken from:

    Date: Thu, 20 Jan 2011 20:44:42 -0500
    From: Jesse Vincent <jesse@fsck.com>
    To: perl5-porters@perl.org
    Subject: Perl 5.13.9 is now available
    Message-ID: <20110121014442.GA27503@puppy>

13 years agoFix reference to the deprecations Task:: for 5.14
Florian Ragwitz [Sun, 20 Feb 2011 07:35:46 +0000 (08:35 +0100)]
Fix reference to the deprecations Task:: for 5.14

I'll be uploading that dist to CPAN shortly.

13 years agoAllow suffix form for /a /d /l /u
Karl Williamson [Sat, 19 Feb 2011 22:56:29 +0000 (15:56 -0700)]
Allow suffix form for /a /d /l /u

This patch contains the code changes for doing this, but not most of the
pod changes, nor the new .t tests required.  There were already tests in
place to make sure that this didn't break backcompat.

13 years agoregexp.h: The length of 'aa' is 2
Karl Williamson [Sun, 20 Feb 2011 03:52:48 +0000 (20:52 -0700)]
regexp.h: The length of 'aa' is 2

13 years agotoke.c: Don't take the address of a register
Karl Williamson [Sat, 19 Feb 2011 19:13:09 +0000 (12:13 -0700)]
toke.c: Don't take the address of a register

I discovered after I pushed 858a358bdd94da8251cdb2210d9bec7c1bbe7464
that I had forgotten to 'git add' changes before committing.

13 years agoperlfunc/-X: rearrange slightly and note llafr exemption
Father Chrysostomos [Sun, 20 Feb 2011 04:25:44 +0000 (20:25 -0800)]
perlfunc/-X: rearrange slightly and note llafr exemption

The paragraphs explaining -x -r -w and -T -B have grown over time,
obscuring the bit about the syntax, so I’ve moved it up.

I have also expanded it to note its exemption from the ‘looks like a
function’ rule (which is currently mentioned only in perlop, if I
remember correctly).

13 years agoperlfunc tweaks
Father Chrysostomos [Sun, 20 Feb 2011 03:19:18 +0000 (19:19 -0800)]
perlfunc tweaks

Notable changes, apart from grammar and punctuation:
• ‘In general’ in conjunction with ‘all’ is slightly contradictory
• wait, waitpid, and syscall are not the only functions that do not
  return undef on failure

13 years agotoke.c: Move suffix re mods message to one place
Karl Williamson [Sat, 19 Feb 2011 19:13:09 +0000 (12:13 -0700)]
toke.c: Move suffix re mods message to one place

This involves a slight refactoring of the routine that handles
parsing for the mods

13 years agoperlop.pod: Update to account for /r
Karl Williamson [Sun, 20 Feb 2011 03:17:16 +0000 (20:17 -0700)]
perlop.pod: Update to account for /r

13 years agoUpdated Module::Build to CPAN Version 0.37_05
David Golden [Sun, 20 Feb 2011 01:53:32 +0000 (20:53 -0500)]
Updated Module::Build to CPAN Version 0.37_05

[DELTA]

0.37_05 - Sat Feb 19 20:43:23 EST 2011

  [BUG FIXES]

  - fixes failing ppm.t in perl core

  [OTHER]

  - Pod typo fixes [Hongwen Qiu]

13 years agoperlform tweaks
Father Chrysostomos [Sun, 20 Feb 2011 03:04:24 +0000 (19:04 -0800)]
perlform tweaks

13 years agoperlfork tweaks
Father Chrysostomos [Sun, 20 Feb 2011 02:43:06 +0000 (18:43 -0800)]
perlfork tweaks

13 years agoperlfilter tweaks
Father Chrysostomos [Sun, 20 Feb 2011 02:01:42 +0000 (18:01 -0800)]
perlfilter tweaks

13 years agoMinor perlfaq9 tweaks
Father Chrysostomos [Sun, 20 Feb 2011 01:40:37 +0000 (17:40 -0800)]
Minor perlfaq9 tweaks

13 years agoMinor perlfaq8 tweaks
Father Chrysostomos [Sun, 20 Feb 2011 01:30:45 +0000 (17:30 -0800)]
Minor perlfaq8 tweaks

13 years agoperlfaq7: simple hash keys are always quoted
Father Chrysostomos [Sat, 19 Feb 2011 19:50:34 +0000 (11:50 -0800)]
perlfaq7: simple hash keys are always quoted

13 years agoMinor perlfaq7 tweaks
Father Chrysostomos [Sat, 19 Feb 2011 19:49:31 +0000 (11:49 -0800)]
Minor perlfaq7 tweaks

13 years agoutf8.c: Fix setting wrong variable
Karl Williamson [Sat, 19 Feb 2011 23:31:05 +0000 (16:31 -0700)]
utf8.c: Fix setting wrong variable

This doesn't appear to actually break anything.

13 years agoregexec.c: Fix utf8 e.g. [\s] under locale
Karl Williamson [Sat, 19 Feb 2011 21:27:18 +0000 (14:27 -0700)]
regexec.c: Fix utf8 e.g. [\s] under locale

locale rules are handled improperly for utf8-encoded strings in
bracketed character classes under locale.  This fixes that.

13 years agoperldiag.pod: Minor correction
Karl Williamson [Sat, 19 Feb 2011 22:59:52 +0000 (15:59 -0700)]
perldiag.pod: Minor correction

13 years agoSkip ppm.t in Module::Build if running under PERL_CORE.
Chris 'BinGOs' Williams [Sat, 19 Feb 2011 19:19:44 +0000 (19:19 +0000)]
Skip ppm.t in Module::Build if running under PERL_CORE.

  From #p5p

  [17:54] <@Steffen> avar, is blead passing the M::B ppm.t test again?
  [17:54] <@Steffen> Asking because of the release.
  [17:55] * avar checks
  <snip>
  [18:19] <@avar> xdg: zomg plz fix it wtf bbq
  [18:19] <@avar> :)
  <snip>
  [19:07] <@xdg> avar, nopaste the failure and I'll look at it tonight.  Worst case, just rm ppm.t --
                 it's not critical and it's a finicky test.  (Passes for me.)
  [19:07] * xdg nap &
  [19:09] <@avar> willdo later when I get home, unless someone beats me to it *hint*

13 years agoRevert "regcomp: Add warning if tries to use \p in locale."
Karl Williamson [Sat, 19 Feb 2011 18:48:58 +0000 (11:48 -0700)]
Revert "regcomp: Add warning if tries to use \p in locale."

This reverts commit fb2e24cdda774d9e9c28f1cd0356bba9070894c7.

This turned out to be contentious, and is past the date for
contentious changes.

13 years agoFix locale caseless matching and utf8
Karl Williamson [Sat, 19 Feb 2011 17:20:50 +0000 (10:20 -0700)]
Fix locale caseless matching and utf8

As explained in the doc changes of this patch, under /l, caseless
matching of code points less than 256 now use locale rules regardless
of the utf8ness of the pattern or string.  They now match the behavior
of things like \w, in this regard.

13 years agore/fold_grind.t: Fix improper skipping test
Karl Williamson [Sat, 19 Feb 2011 17:18:35 +0000 (10:18 -0700)]
re/fold_grind.t: Fix improper skipping test

13 years agore/fold_grind.t: Improve debug diagnostic
Karl Williamson [Sat, 19 Feb 2011 17:15:34 +0000 (10:15 -0700)]
re/fold_grind.t: Improve debug diagnostic

13 years agoperlunicode.pod: Remove false statement
Karl Williamson [Sat, 19 Feb 2011 17:13:41 +0000 (10:13 -0700)]
perlunicode.pod: Remove false statement

In fact the code is such that changing an A to a cntrol does work

13 years agoregcomp.c: no sharp ss tricky fold under locale
Karl Williamson [Sat, 19 Feb 2011 17:11:58 +0000 (10:11 -0700)]
regcomp.c: no sharp ss tricky fold under locale

13 years agoregcomp.c: Fix some comments
Karl Williamson [Sat, 19 Feb 2011 16:07:51 +0000 (09:07 -0700)]
regcomp.c: Fix some comments

13 years agofoldEQ_utf8(): Add locale handling
Karl Williamson [Fri, 18 Feb 2011 15:39:36 +0000 (08:39 -0700)]
foldEQ_utf8(): Add locale handling

A new flag is now passable to this function to indicate to use locale
rules for code points below 256.  Unicode rules are still used for above
255.  Folds which cross that boundary are disallowed.

13 years agoregexec.c: Change flag bit from digit to mnemonic
Karl Williamson [Fri, 18 Feb 2011 14:58:48 +0000 (07:58 -0700)]
regexec.c: Change flag bit from digit to mnemonic

13 years agoIn Errno, use typeglob aliasing instead of subref to typeglob assignment.
Nicholas Clark [Sat, 19 Feb 2011 17:38:12 +0000 (17:38 +0000)]
In Errno, use typeglob aliasing instead of subref to typeglob assignment.

Typeglob aliasing saves just over .5K, because fewer internal structures are
created. In the general case the behaviour of the two differs, but as the
only package variables of these names are subroutines, and we are within our
own namespace, there is no difference here.

13 years agoIn Config, use typeglob aliasing instead of subref to typeglob assignment.
Nicholas Clark [Sat, 19 Feb 2011 17:33:43 +0000 (17:33 +0000)]
In Config, use typeglob aliasing instead of subref to typeglob assignment.

Typeglob aliasing saves just over .5K, because fewer internal structures are
created. In the general case the behaviour of the two differs, but as the
only package variables of these names are subroutines, and we are within our
own namespace, there is no difference here.

13 years agoTidy the generated code for Config.pm
Nicholas Clark [Sat, 19 Feb 2011 16:54:47 +0000 (16:54 +0000)]
Tidy the generated code for Config.pm

Can now use warnings and use vars, as both pragmata were fixed (some years ago)
not to pull in Carp unconditionally. use vars '%Config' (in two places) is
(about) 98 bytes smaller than our %Config on this platform.

13 years agoMinor perlfaq6 tweaks
Father Chrysostomos [Sat, 19 Feb 2011 15:05:36 +0000 (07:05 -0800)]
Minor perlfaq6 tweaks

13 years agoRe-order ‘How can I read in an entire file all at once?’
Father Chrysostomos [Sat, 19 Feb 2011 14:46:36 +0000 (06:46 -0800)]
Re-order ‘How can I read in an entire file all at once?’

This entry has been edited about five times in the past without regard
to the way the text flows. Each new bit has been slapped on to the
top, so parts of it are now repetitive.

13 years agoMinor perlfaq5 tweaks
Father Chrysostomos [Sat, 19 Feb 2011 14:15:04 +0000 (06:15 -0800)]
Minor perlfaq5 tweaks

13 years agoAdd Config::header_files() to list the header dependencies for XS code.
Nicholas Clark [Sat, 19 Feb 2011 14:58:36 +0000 (14:58 +0000)]
Add Config::header_files() to list the header dependencies for XS code.

Currently ExtUtils::MM_{Unix,VMS} contain hard-coded lists, which omit some
headers, and include other headers that we would like to like to eliminate.
Having the Perl installation providing the canonical list for itself allows
us to avoid the these problems.

13 years agoAdd buildcustomize.pl to realclean target on VMS.
Craig A. Berry [Sat, 19 Feb 2011 03:23:52 +0000 (21:23 -0600)]
Add buildcustomize.pl to realclean target on VMS.

13 years agoDispatch dl_expandspec at build time, not run time.
Craig A. Berry [Sat, 19 Feb 2011 00:52:53 +0000 (18:52 -0600)]
Dispatch dl_expandspec at build time, not run time.

Before 0a0b6c96e6042658aa123b3990724be593a2bb63, dl_expandspec was
an autoloaded function that would never be called if an XS version
was already loaded.  Without autoloading in DynaLoader anymore,
the pure Perl version gets loaded first, which causes trouble if
the XS version is what's expected.  It looks as though VMS is the
only platform that has an XS version, so just avoid declaring the
Perl version there.

13 years agoexport PL_core_reg_engine so it's visible to the re module
Tony Cook [Sat, 19 Feb 2011 01:34:42 +0000 (12:34 +1100)]
export PL_core_reg_engine so it's visible to the re module

Win32 builds have been broken since de1ac46b without this.

13 years agoMinor perlfaq4 tweaks
Father Chrysostomos [Fri, 18 Feb 2011 22:27:54 +0000 (14:27 -0800)]
Minor perlfaq4 tweaks

13 years agoDual-life Devel::DProf
Florian Ragwitz [Fri, 18 Feb 2011 23:03:56 +0000 (00:03 +0100)]
Dual-life Devel::DProf

It's not actually on CPAN yet, but it will be in the next couple of days.

13 years agoAdd a deprecation notice to the Devel::DProf docs
Florian Ragwitz [Fri, 18 Feb 2011 21:22:12 +0000 (22:22 +0100)]
Add a deprecation notice to the Devel::DProf docs

13 years agoSlightly improve some perldelta wording
Florian Ragwitz [Fri, 18 Feb 2011 21:17:28 +0000 (22:17 +0100)]
Slightly improve some perldelta wording

13 years agoAllow Devel::DProf's tests to run without text.pl
Florian Ragwitz [Tue, 25 Jan 2011 16:16:06 +0000 (17:16 +0100)]
Allow Devel::DProf's tests to run without text.pl

This allows us to run the tests outside of the core.

13 years agoDon't call the new __loaded_from_core on old perls
Florian Ragwitz [Fri, 18 Feb 2011 19:06:55 +0000 (20:06 +0100)]
Don't call the new __loaded_from_core on old perls

On perls that don't have deprecate::__loaded_from_core yet, dprofpp isn't
deprecated yet, so all is good.

13 years agoRemove Devel::DProf from the core distribution. Get it from CPAN now.
Nicholas Clark [Fri, 18 Feb 2011 18:19:45 +0000 (18:19 +0000)]
Remove Devel::DProf from the core distribution. Get it from CPAN now.

Recommend Devel::NYTProf over Devel::DProf.

[Devel::DProf isn't actually on CPAN quite yet, but will be well before 5.14.0
"escapes"]

13 years agoBreak out from deprecate::import the "check if it's core" code.
Nicholas Clark [Fri, 18 Feb 2011 17:40:27 +0000 (17:40 +0000)]
Break out from deprecate::import the "check if it's core" code.

This will allow dprofpp to check whether Devel::DProf is from the core
distribution, or from a CPAN install.

13 years agoIn deprecate.pm, only cluck() once if the leaf isn't found in the caller stack.
Nicholas Clark [Fri, 18 Feb 2011 16:15:24 +0000 (16:15 +0000)]
In deprecate.pm, only cluck() once if the leaf isn't found in the caller stack.

Previously, if the expected leafname was not found in the caller stack, the
code was cluck, and then continue the loop with the next directories to scan.
However, this serves no useful purpose, as the loop changes nothing that causes
the failure condition, hence all that this would result in is a second cluck()
if the next scanned directories also happened to match. Now the core returns
immediately.

13 years agoIn deprecate.pm, remove unused variable $line
Nicholas Clark [Fri, 18 Feb 2011 15:57:25 +0000 (15:57 +0000)]
In deprecate.pm, remove unused variable $line

13 years agoperldelta for f1f02a6
Father Chrysostomos [Fri, 18 Feb 2011 18:16:06 +0000 (10:16 -0800)]
perldelta for f1f02a6