This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl5.git
12 years agoMention evalbytes in perlvar as a (_) function
Father Chrysostomos [Sat, 17 Dec 2011 05:31:13 +0000 (21:31 -0800)]
Mention evalbytes in perlvar as a (_) function

12 years agoRemove use of local($_) from dumpvar.pl
Father Chrysostomos [Sat, 17 Dec 2011 04:46:35 +0000 (20:46 -0800)]
Remove use of local($_) from dumpvar.pl

I know we should really be fixing local($_), but that code
in scope.c is rather twisted, and I want to see this fix
in 5.16.

12 years agoperlvar: Don’t mention 5.9
Father Chrysostomos [Sat, 17 Dec 2011 04:31:38 +0000 (20:31 -0800)]
perlvar: Don’t mention 5.9

12 years agoperlvar: Consistent use of spaces after dots
Father Chrysostomos [Sat, 17 Dec 2011 04:31:18 +0000 (20:31 -0800)]
perlvar: Consistent use of spaces after dots

This commit changes it to use two spaces, for several reasons.  It was
already inconsistent.  Although it used one space in most cases, the
rest of Perl’s documentation uses two.  pod2man expects two spaces, as
it adds two spaces for sentences ending at the end of a line in the
middle of a paragraph, as it was designed to work with Perl’s origi-
nal pod docs, which used two spaces.  If this document used one space
throughout, one would have to go through it and make sure no sentences
end at the ends of lines except at the end of a paragraph.

12 years agoperldiag: Rewrap ‘Code point 0x%X is not Unicode’
Father Chrysostomos [Sat, 17 Dec 2011 02:05:45 +0000 (18:05 -0800)]
perldiag: Rewrap ‘Code point 0x%X is not Unicode’

to make splain output look better.

12 years agoIncrease $diagnostics::VERSION to 1.26
Father Chrysostomos [Sat, 17 Dec 2011 02:01:23 +0000 (18:01 -0800)]
Increase $diagnostics::VERSION to 1.26

12 years agoTeach splain about %X
Father Chrysostomos [Sat, 17 Dec 2011 02:00:07 +0000 (18:00 -0800)]
Teach splain about %X

12 years agoperldiag: Separate two paragraphs
Father Chrysostomos [Sat, 17 Dec 2011 01:09:01 +0000 (17:09 -0800)]
perldiag: Separate two paragraphs

otherwise they flow together as one paragraph in formatted pod.

12 years agoperldiag: gmtime(nan) too small does not occur
Father Chrysostomos [Sat, 17 Dec 2011 01:08:11 +0000 (17:08 -0800)]
perldiag: gmtime(nan) too small does not occur

12 years agoperldiag: Fix some jagged lines
Father Chrysostomos [Sat, 17 Dec 2011 00:33:06 +0000 (16:33 -0800)]
perldiag: Fix some jagged lines

Reflow some entries to make the right margin less jagged in
splain output.

12 years agoUpdate Timothe Litt’s e-mail address
Father Chrysostomos [Fri, 16 Dec 2011 23:57:33 +0000 (15:57 -0800)]
Update Timothe Litt’s e-mail address

12 years agoUpdate Socket to CPAN version 1.97
Chris 'BinGOs' Williams [Fri, 16 Dec 2011 22:37:41 +0000 (22:37 +0000)]
Update Socket to CPAN version 1.97

  [DELTA]

  1.97    CHANGES:
         * Rewritten Makefile.PL configure-time logic to use only core's
           ExtUtils::CBuilder rather than CPAN's ExtUtils::CChecker
         * Fix implementation of synthesized newSVpvn_flags() to also work on
           threaded 5.10.0
         * Set INSTALLDIRS=perl on perl before 5.11; required as it's
           replacing a core module

12 years agoThe t/gol-compat.t file is explicitly excluded from Getopt::Long in core
Dave Rolsky [Fri, 16 Dec 2011 23:10:09 +0000 (17:10 -0600)]
The t/gol-compat.t file is explicitly excluded from Getopt::Long in core

12 years agoCorrect &CORE::foo entry in perldiag
Father Chrysostomos [Fri, 16 Dec 2011 22:23:16 +0000 (14:23 -0800)]
Correct &CORE::foo entry in perldiag

12 years agoperldiag: missing C<>
Father Chrysostomos [Fri, 16 Dec 2011 22:22:19 +0000 (14:22 -0800)]
perldiag: missing C<>

I know there are dozens and dozens of these that I have not fixed,
but I happened to notice these two first and wanted to remove them
from my notes.

12 years agoperldiag: extraneous backslash
Father Chrysostomos [Fri, 16 Dec 2011 22:21:08 +0000 (14:21 -0800)]
perldiag: extraneous backslash

12 years agoperldiag: use F<> for file names
Father Chrysostomos [Fri, 16 Dec 2011 22:19:44 +0000 (14:19 -0800)]
perldiag: use F<> for file names

12 years agoperldiag: wrap long lines
Father Chrysostomos [Fri, 16 Dec 2011 22:16:46 +0000 (14:16 -0800)]
perldiag: wrap long lines

12 years agoperldiag: Retitle ‘Cannot copy’
Father Chrysostomos [Fri, 16 Dec 2011 22:05:28 +0000 (14:05 -0800)]
perldiag: Retitle ‘Cannot copy’

Without the ‘in %s’ it covers both forms of the error message.

12 years agoperldiag: Consistent use of spaces after dots
Father Chrysostomos [Fri, 16 Dec 2011 21:58:47 +0000 (13:58 -0800)]
perldiag: Consistent use of spaces after dots

Where the changes made splain output look worse, I reflowed the text.

12 years agotoke.c, perldiag: Note delay of some things to 5.18
Karl Williamson [Fri, 16 Dec 2011 18:39:56 +0000 (11:39 -0700)]
toke.c, perldiag: Note delay of some things to 5.18

We are mostly allowing two release cycles before removing a deprecated
feature; therefore several things have been retained for 5.16, that are
documented as being removed for it; Update the docs.

12 years agoSmall perldelta language tweaks for rindolf's changes
Dave Rolsky [Fri, 16 Dec 2011 18:14:20 +0000 (12:14 -0600)]
Small perldelta language tweaks for rindolf's changes

12 years agoDocument the "perl -d" bug fixes commit.
Shlomi Fish [Fri, 16 Dec 2011 18:08:47 +0000 (20:08 +0200)]
Document the "perl -d" bug fixes commit.

In pod/perldelta.pod.

12 years agoDoc 5d5d9ea ("c 3" debugger command fix) in perldelta
Dave Rolsky [Fri, 16 Dec 2011 17:07:25 +0000 (11:07 -0600)]
Doc 5d5d9ea ("c 3" debugger command fix) in perldelta

12 years agoperldiag: double spaces after dots
Father Chrysostomos [Fri, 16 Dec 2011 17:53:56 +0000 (09:53 -0800)]
perldiag: double spaces after dots

12 years agoperldiag: rewrap an entry
Father Chrysostomos [Fri, 16 Dec 2011 17:47:13 +0000 (09:47 -0800)]
perldiag: rewrap an entry

so that splain output looks better.

12 years agoperldiag: rewrap an entry
Father Chrysostomos [Fri, 16 Dec 2011 17:44:31 +0000 (09:44 -0800)]
perldiag: rewrap an entry

to fit comfortably in an 80-column terminal.

12 years agoIncrease $Locale::Maketext::VERSION to 1.21
Father Chrysostomos [Fri, 16 Dec 2011 17:33:35 +0000 (09:33 -0800)]
Increase $Locale::Maketext::VERSION to 1.21

12 years agoAdd Thomas Sibley to AUTHORS
Thomas Sibley [Fri, 16 Dec 2011 15:27:23 +0000 (10:27 -0500)]
Add Thomas Sibley to AUTHORS

12 years agoDocument Locale::Maketext's numerate method
Thomas Sibley [Fri, 16 Dec 2011 14:55:14 +0000 (09:55 -0500)]
Document Locale::Maketext's numerate method

Previously this was only implicitly documented by a passing reference to
it a subsequent section.

12 years agoDoc: numerify was renamed to numf very early on
Thomas Sibley [Fri, 16 Dec 2011 14:52:13 +0000 (09:52 -0500)]
Doc: numerify was renamed to numf very early on

12 years ago[perl #91514] Use correct error msg for default
Father Chrysostomos [Fri, 16 Dec 2011 17:25:30 +0000 (09:25 -0800)]
[perl #91514] Use correct error msg for default

This commit not only mentions default (as opposed to when)
in the error message about it being outside a topicalizer, but
also normalises those error messages, making them consistent with
continue and other loop controls.  It also makes the perldiag
entry for when actually match the error message.

12 years agoReally update perldelta with some older changes that hadn't been included yet
Dave Rolsky [Fri, 16 Dec 2011 16:42:24 +0000 (10:42 -0600)]
Really update perldelta with some older changes that hadn't been included yet

This time without reverting a week or two worth of other change documentation
(version control is hard).

12 years agoRevert "Updated perldelta for some older changes that hadn't been included yet"
Dave Rolsky [Fri, 16 Dec 2011 16:39:57 +0000 (10:39 -0600)]
Revert "Updated perldelta for some older changes that hadn't been included yet"

This reverts commit c15f899f18827e563db510796dac34fdff0db1d8.

12 years agoUpdated perldelta for some older changes that hadn't been included yet
Dave Rolsky [Fri, 16 Dec 2011 16:37:16 +0000 (10:37 -0600)]
Updated perldelta for some older changes that hadn't been included yet

12 years agoPut tlhackque’s real name in AUTHORS
Father Chrysostomos [Fri, 16 Dec 2011 14:24:35 +0000 (06:24 -0800)]
Put tlhackque’s real name in AUTHORS

12 years agoTeach win32/Makefile 'test_porting'
Chris 'BinGOs' Williams [Fri, 16 Dec 2011 12:13:46 +0000 (12:13 +0000)]
Teach win32/Makefile 'test_porting'

12 years agoTeach win32/makefile.mk 'test_porting'
Chris 'BinGOs' Williams [Fri, 16 Dec 2011 12:10:40 +0000 (12:10 +0000)]
Teach win32/makefile.mk 'test_porting'

12 years agoperldelta up to 5dca8ed9d28
Father Chrysostomos [Fri, 16 Dec 2011 06:10:18 +0000 (22:10 -0800)]
perldelta up to 5dca8ed9d28

12 years agoAdd tlhackque to AUTHORS
Father Chrysostomos [Fri, 16 Dec 2011 06:10:04 +0000 (22:10 -0800)]
Add tlhackque to AUTHORS

12 years agoCarp.pm localise $SIG{__DIE__} before eval
Father Chrysostomos [Fri, 16 Dec 2011 06:07:06 +0000 (22:07 -0800)]
Carp.pm localise $SIG{__DIE__} before eval

Otherwise we end up calling other code’s $SIG{__DIE__}.

12 years agoIncrease $Carp::VERSION to 1.24
Father Chrysostomos [Fri, 16 Dec 2011 05:42:02 +0000 (21:42 -0800)]
Increase $Carp::VERSION to 1.24

12 years agoCarp.t: Add tests for PL_last_in_gv
Father Chrysostomos [Fri, 16 Dec 2011 05:41:37 +0000 (21:41 -0800)]
Carp.t: Add tests for PL_last_in_gv

12 years agoAdd missing <fh> line # phrase to Carp messages
tlhackque [Fri, 16 Dec 2011 04:48:21 +0000 (20:48 -0800)]
Add missing <fh> line # phrase to Carp messages

Carp::croak is documented in the camel book as "working like die does,
except misdirecting blame to the caller."

Perldoc says "croak - die of errors (from perspective of caller)".

This is almost true, however careful inspection reveals that croak
does not include file position information ( ", <fh> line $." ) as die
does (when it can).

It turns out that it *is* possible to determine the current file han-
dle (although I wish it were easier).

Carp should do this and add it to the traceback, as it really is use-
ful information.

12 years agopp_hot.c: First letter of latin-1 classnames wasn't being checked correctly.
Brian Fraser [Tue, 13 Dec 2011 22:32:48 +0000 (19:32 -0300)]
pp_hot.c: First letter of latin-1 classnames wasn't being checked correctly.

Previously the first letter for latin-1 classnames was being mischecked, only
allowing ASCII, which caused an instance of the Unicode Bug for downgradable
classnames.

12 years agoperldelta up to 5e5a1632
Father Chrysostomos [Fri, 16 Dec 2011 03:54:42 +0000 (19:54 -0800)]
perldelta up to 5e5a1632

plus the array_base feature

12 years agoName anon handles __ANONIO__
Father Chrysostomos [Fri, 16 Dec 2011 01:45:45 +0000 (17:45 -0800)]
Name anon handles __ANONIO__

rather than $__ANONIO__

That dollar sign *has* to have been a mistake.  In ck_fun, the
name was set to __ANONIO__, but it seems the change that added it
(afd1915d43) did not account for the fact that a little later on the
same function checks to makes sure it begins with a dollar sign, as it
could only be a variable name.

rv2gv’s use of $__ANONIO__ (added recently by yours truly) was just
copying was ck_fun was doing.

12 years agoDocument the array_base feature
Father Chrysostomos [Fri, 16 Dec 2011 00:34:36 +0000 (16:34 -0800)]
Document the array_base feature

12 years agoDisable $[ under 5.16
Father Chrysostomos [Fri, 16 Dec 2011 00:26:16 +0000 (16:26 -0800)]
Disable $[ under 5.16

This adds the array_base feature to feature.pm

Perl_feature_is_enabled has been modified to use PL_curcop, rather
than PL_hintgv, so it can work with run-time hints as well.
(PL_curcop holds the current state op at run time, and &PL_compiling
at compile time, so it works for both.)  The hints in $^H are not
stored in the same place at compile time and run time, so the FEATURE_IS_ENABLED macro has been modified to check first whether
PL_curop == &PL_compiling.

Since array_base is on by default with no hint for it in %^H, it is
a ‘negative’ feature, whose entry in %^H turns it off.  feature.pm
has been modified to support such negative features.  The new FEATURE_IS_ENABLED_d can check whether such default features
are enabled.

This does make things less efficient, as every version declaration
now loads feature.pm to disable all features (including turning off
array_base, which entails adding an entry to %^H) before loading the
new bundle.  I have plans to make this more efficient.

12 years agofeature.pm: Consistent use of spaces after full stops
Father Chrysostomos [Fri, 16 Dec 2011 00:19:05 +0000 (16:19 -0800)]
feature.pm: Consistent use of spaces after full stops

12 years agoperlvar: document what $[ will do under use v5.16
Father Chrysostomos [Thu, 15 Dec 2011 05:43:38 +0000 (21:43 -0800)]
perlvar: document what $[ will do under use v5.16

12 years agoBring perldiag/‘Assigning non-zero to $[’ closer to reality
Father Chrysostomos [Thu, 15 Dec 2011 04:10:08 +0000 (20:10 -0800)]
Bring perldiag/‘Assigning non-zero to $[’ closer to reality

Or closer to what will imminently be its reality

12 years agoRestore ‘Assigning non-zero to $[’ to perldiag
Father Chrysostomos [Thu, 15 Dec 2011 02:10:49 +0000 (18:10 -0800)]
Restore ‘Assigning non-zero to $[’ to perldiag

This was removed by b82b06b8ca32.  The message is coming back soon, at
least under ‘use 5.016’....

12 years agoperldelta_template: revise text about incompatible changes
Karl Williamson [Wed, 14 Dec 2011 17:13:14 +0000 (10:13 -0700)]
perldelta_template: revise text about incompatible changes

12 years agoutf8.c: Change prototypes of two functions
Karl Williamson [Wed, 14 Dec 2011 16:29:33 +0000 (09:29 -0700)]
utf8.c: Change prototypes of two functions

_to_uni_fold_flags() and _to_fold_latin1() now have their flags
parameter be a boolean.  The name 'flags' is retained in case the usage
ever expands instead of calling it by the name of the only use this
currently has.

This is as a result of confusion between this and _to_ut8_fold_flags()
which does have more than one flag possibility.

12 years agoscope.c: Allow successful saving of PL_tainted
Karl Williamson [Wed, 14 Dec 2011 05:10:53 +0000 (22:10 -0700)]
scope.c: Allow successful saving of PL_tainted

leave_scope() saves and restores PL_tainted upon entry and exit.  This
means that any attempt to save this variable on the stack will fail, as
its unstacked value will overwrite the popped one.

To counteract this, we update our saved version with the popped value.

12 years agopp.c: Changing case of utf8 strings under locale uses locale for < 255
Karl Williamson [Wed, 14 Dec 2011 05:01:46 +0000 (22:01 -0700)]
pp.c: Changing case of utf8 strings under locale uses locale for < 255

As proposed on p5p and approved, this changes the functions uc(), lc(),
ucfirst(), and lcfirst() to respect locale for code points < 255; and
use Unicode semantics for those above 255.  This results in better, but
not perfect results, as noted in the changed pods, and brings these
functions into line with how regular expression pattern matching already
works.

12 years agoutf8.c: White-space changes only
Karl Williamson [Wed, 14 Dec 2011 04:52:40 +0000 (21:52 -0700)]
utf8.c: White-space changes only

This indents previous lines that are now within new blocks

12 years agoutf8.c: Allow Changed behavior of utf8 under locale
Karl Williamson [Wed, 14 Dec 2011 04:48:19 +0000 (21:48 -0700)]
utf8.c: Allow Changed behavior of utf8 under locale

This changes the 4 case changing functions to take extra parameters to
specify if the utf8 string is to be processed under locale rules when
the code points are < 256.  The current functions are changed to macros
that call the new versions so that current behavior is unchanged.

An additional, static, function is created that makes sure that the
255/256 boundary is not crossed during the case change.

12 years agoutf8.c: Add comment
Karl Williamson [Wed, 14 Dec 2011 04:34:11 +0000 (21:34 -0700)]
utf8.c: Add comment

12 years agolocale.t: Prepare for adding more tests
Karl Williamson [Wed, 14 Dec 2011 04:24:24 +0000 (21:24 -0700)]
locale.t: Prepare for adding more tests

This custom TAP output .t has hard-coded test numbers.  Rather than
disturb those, I plan to add tests that come after all the current ones,
and this paves the way for that.

12 years agolocale.t: Add ability to output a message with 'ok'
Karl Williamson [Wed, 14 Dec 2011 04:20:12 +0000 (21:20 -0700)]
locale.t: Add ability to output a message with 'ok'

locale.t uses its own custom TAP messages.  This changes the 'ok' sub
to accept another parameter, a test description to add to the TAP line.
And it changes the taint functions to produce a generic one of these

12 years agoRevise feature.pm documentation
David Golden [Thu, 15 Dec 2011 18:36:42 +0000 (13:36 -0500)]
Revise feature.pm documentation

12 years agocore-cpan-diff: clarify phrasing of missing file warning
David Golden [Thu, 15 Dec 2011 16:13:23 +0000 (11:13 -0500)]
core-cpan-diff: clarify phrasing of missing file warning

12 years agoFix Maintainers.pl and META.yml for removal of lib/version.t
David Golden [Thu, 15 Dec 2011 14:35:53 +0000 (09:35 -0500)]
Fix Maintainers.pl and META.yml for removal of lib/version.t

12 years agoMerge CPAN version.pm tests into CORE.
John Peacock [Mon, 12 Dec 2011 17:57:11 +0000 (12:57 -0500)]
Merge CPAN version.pm tests into CORE.

It has become increasingly difficult to maintain the CPAN tests
and the CORE tests, so include the [subtly edited] CPAN tests
into the CORE code instead.  NOTE: this also bumps $VERSION to
match the forthcoming CPAN release.

Signed-off-by: David Golden <dagolden@cpan.org>
12 years agoUpdate threads to CPAN version 1.86
Chris 'BinGOs' Williams [Wed, 14 Dec 2011 23:02:38 +0000 (23:02 +0000)]
Update threads to CPAN version 1.86

  [DELTA]

  1.86 Wed Dec 14 21:12:51 2011
    - Fix for mingw-w64 build due to setjmp difference

12 years agoSync Module-CoreList MANIFEST file with what is on CPAN
Chris 'BinGOs' Williams [Wed, 14 Dec 2011 21:19:57 +0000 (21:19 +0000)]
Sync Module-CoreList MANIFEST file with what is on CPAN

12 years agoFix Module::Build entry in Maintainers.pl
David Golden [Wed, 14 Dec 2011 20:47:03 +0000 (15:47 -0500)]
Fix Module::Build entry in Maintainers.pl

Corrected path for CUSTOMIZED and updated the documentation of
CUSTOMIZED as a reminder for others.

12 years agoUpdate Maintainers.pl to quiet DAGOLDEN core-cpan-diff warnings
David Golden [Wed, 14 Dec 2011 20:39:57 +0000 (15:39 -0500)]
Update Maintainers.pl to quiet DAGOLDEN core-cpan-diff warnings

12 years agoReformatted Maintainers.pl for whitespace and layout consistency
Dave Rolsky [Wed, 14 Dec 2011 18:33:27 +0000 (12:33 -0600)]
Reformatted Maintainers.pl for whitespace and layout consistency

(12:16:39) autarch: can I just run perltidy on the whole file?
(12:16:59) rjbs: Yes.
(12:17:14) ***rjbs will take the heat, if there is any, unless you actually BREAK something. :-)
(12:17:30) rjbs: where something is not "my custom Maintainers.pl parser, written in 1995"

12 years agoMore files to exclude from the core-cpan-diff
Dave Rolsky [Wed, 14 Dec 2011 18:12:49 +0000 (12:12 -0600)]
More files to exclude from the core-cpan-diff

12 years agoperlfunc: Document kill without list of processes
Karl Williamson [Wed, 14 Dec 2011 17:09:57 +0000 (10:09 -0700)]
perlfunc: Document kill without list of processes

12 years agoperlsec: Fix example to localize $@.
Karl Williamson [Wed, 14 Dec 2011 16:41:26 +0000 (09:41 -0700)]
perlsec: Fix example to localize $@.

Not doing this can cause hard-to-find bugs.

12 years agoop/taint.t: localize $@
Karl Williamson [Wed, 14 Dec 2011 16:36:43 +0000 (09:36 -0700)]
op/taint.t: localize $@

This is so the subroutine's calling 'eval' won't affect things outside
it.

12 years agolocale.t: Don't destroy caller's $@
Karl Williamson [Wed, 14 Dec 2011 04:16:50 +0000 (21:16 -0700)]
locale.t: Don't destroy caller's $@

This bug was very hard for me to find.  Leave the outside $@ untouched.

12 years agoperllocale: Don't mention /l modifier
Karl Williamson [Wed, 14 Dec 2011 04:13:10 +0000 (21:13 -0700)]
perllocale: Don't mention /l modifier

The /l modifier really shouldn't be used explicitly.  So remove this
mention of it.  It is documented in perlre, with appropriate cautions
against its explicit use.

12 years agoperllocale: Nits
Karl Williamson [Wed, 14 Dec 2011 04:08:33 +0000 (21:08 -0700)]
perllocale: Nits

This adds a clarification, a couple grammar and typo fixes, and outdents
some verbatim sections to fit within 79 columns.

12 years agocharnames: Add %Carp::Internal entry
Karl Williamson [Thu, 8 Dec 2011 01:18:34 +0000 (18:18 -0700)]
charnames: Add %Carp::Internal entry

This will be useful in a future commit.  charnames is about to be split
into two modules, one called by the other, and warnings::warn() would
otherwise return if warnings are enabled in the parent module.

12 years agocharnames and perlapi: pod nits
Karl Williamson [Sun, 4 Dec 2011 04:37:48 +0000 (21:37 -0700)]
charnames and perlapi: pod nits

12 years agocharnames: "Add 'use re "/aa"'
Karl Williamson [Sat, 1 Oct 2011 16:29:56 +0000 (10:29 -0600)]
charnames: "Add 'use re "/aa"'

This should add a slight performance improvement, and is usable since
all names are ASCII

12 years agoIgnore all tests in xt/ or tests of the form t/release-.*
Dave Rolsky [Wed, 14 Dec 2011 17:51:42 +0000 (11:51 -0600)]
Ignore all tests in xt/ or tests of the form t/release-.*

12 years agoNormalise some of the module updates in perldelta
Chris 'BinGOs' Williams [Wed, 14 Dec 2011 12:11:09 +0000 (12:11 +0000)]
Normalise some of the module updates in perldelta

12 years agoUpdate Digest-SHA to CPAN version 5.70
Chris 'BinGOs' Williams [Wed, 14 Dec 2011 12:09:12 +0000 (12:09 +0000)]
Update Digest-SHA to CPAN version 5.70

  [DELTA]

  5.70  Wed Dec 14 02:32:10 MST 2011
  - added BITS mode to addfile method and shasum
    -- partial-byte inputs now possible via files/STDIN
    -- allows shasum to check all 8074 NIST Msg vectors
      -- previously required special programming

12 years agoperldelta: Turn one-liner into a block of code
Father Chrysostomos [Tue, 13 Dec 2011 22:40:20 +0000 (14:40 -0800)]
perldelta: Turn one-liner into a block of code

so the line isn’t too long.

12 years agoperldelta up to 1881532246
Father Chrysostomos [Tue, 13 Dec 2011 17:40:22 +0000 (09:40 -0800)]
perldelta up to 1881532246

12 years agoEU::ParseXS: Silence undefined-value-in-addition warning
Steffen Mueller [Tue, 13 Dec 2011 17:21:52 +0000 (18:21 +0100)]
EU::ParseXS: Silence undefined-value-in-addition warning

Nothing serious, just happened sometimes when reporting line numbers for
errors. But warning during build process.

12 years agoUpdate CPAN-Meta-YAML to CPAN version 0.005
Chris 'BinGOs' Williams [Tue, 13 Dec 2011 18:06:55 +0000 (18:06 +0000)]
Update CPAN-Meta-YAML to CPAN version 0.005

  [DELTA]

  0.005     2011-12-13 12:57:24 EST5EDT

  - Generated from ADAMK/YAML-Tiny-1.50.tar.gz

  - Fix documentation to clarify that users are responsible for
    UTF-8 encoding/decoding

12 years ago[RT #78266] Don't leak memory when accessing named captures that didn't match
Ævar Arnfjörð Bjarmason [Tue, 13 Dec 2011 14:43:12 +0000 (14:43 +0000)]
[RT #78266] Don't leak memory when accessing named captures that didn't match

Since 5.10 (probably 44a2ac759e) named captures have been leaking
memory when they're used, don't actually match, but are later
accessed. E.g.:

    $ perl -wle 'for (1..10_000_000) { if ("foo" =~ /(foo|(?<capture>bar))?/) { my $capture = $+{capture} } } system "ps -o rss $$"'
      RSS
    238524

Here we match the "foo" branch of our regex, but since we've used a
name capture we'll end up running the code in
Perl_reg_named_buff_fetch, which allocates a newSVsv(&PL_sv_undef) but
never uses it unless it's trying to return an array.

Just change that code not to allocate scalars we don't plan to
return. With this fix we don't leak any memory since there's nothing
to leak anymore.

    $ ./perl -Ilib -wle 'for (1..10_000_000) { if ("foo" =~ /(foo|(?<capture>bar))?/) { my $capture = $+{capture} } } system "ps -o rss $$"'
      RSS
     3528

This reverts commit b28f4af8cf94eb18c0cfde71e9625081912499a8 ("Fix
allocating something in the first place is a better solution than
allocating it, not using it, and then freeing it.

12 years agoAdd Johannes Plunien to AUTHORS
Father Chrysostomos [Tue, 13 Dec 2011 17:30:07 +0000 (09:30 -0800)]
Add Johannes Plunien to AUTHORS

12 years agoAdd testcase for #78266.
Johannes Plunien [Tue, 13 Dec 2011 08:29:47 +0000 (12:29 +0400)]
Add testcase for #78266.

12 years agoFix #78266: Memory leak with named regexp captures.
Johannes Plunien [Tue, 13 Dec 2011 07:39:52 +0000 (11:39 +0400)]
Fix #78266: Memory leak with named regexp captures.

12 years agoMake scalar() propagate lvalueness
Father Chrysostomos [Tue, 13 Dec 2011 06:29:39 +0000 (22:29 -0800)]
Make scalar() propagate lvalueness

As mentioned in ticket #24346, scalar() should not change lvalueness.
The fact that it did was a side effect of the implementation and a
bug.  foo(scalar substr(....)) should pass a substr lvalue to foo just
as it would without scalar() or with a $ prototype (which is meant to
be equivalent to scalar()).

This also makes it possible to force scalar context in list assignment
to lvalue subroutines, as in (foo(), scalar bar()) = @list.

12 years agoperldelta for is_utf8_string()
Karl Williamson [Mon, 12 Dec 2011 16:21:40 +0000 (09:21 -0700)]
perldelta for is_utf8_string()

12 years agoSet all version object math ops to noop
John Peacock [Sun, 11 Dec 2011 02:51:02 +0000 (21:51 -0500)]
Set all version object math ops to noop

Explicitly handle all math operations with version objects as noop
instead of letting Perl handle it magically with nomethod.

Signed-off-by: David Golden <dagolden@cpan.org>
12 years agofix make_patchnum.pl branch determination
David Mitchell [Mon, 12 Dec 2011 12:42:46 +0000 (12:42 +0000)]
fix make_patchnum.pl branch determination

A previous commit of mine, 9077509c9b9bc1871867a5fba4351b95c670298d,
tried to handle the case where the output of 'git branch' was

    * (no branch)
      blead

to stop it outputting  a 'Use of uninitialized value' warning.
However, my "fix" broke in the case where multiple branches are listed
with the current not the first:

      blead
    * tmp1
      tmp2

Hopefully this fixes it properly.

12 years agoperldelta for e7d0a3fbd9 (tying PVMG COWs)
Father Chrysostomos [Mon, 12 Dec 2011 04:45:36 +0000 (20:45 -0800)]
perldelta for e7d0a3fbd9 (tying PVMG COWs)

12 years agoperldelta up to 0ea03996e7
Father Chrysostomos [Mon, 12 Dec 2011 04:03:25 +0000 (20:03 -0800)]
perldelta up to 0ea03996e7

12 years agoUpdate Socket to CPAN version 1.96
Chris 'BinGOs' Williams [Sun, 11 Dec 2011 09:42:07 +0000 (09:42 +0000)]
Update Socket to CPAN version 1.96

  [DELTA]

  1.96    CHANGES:
         * Fix Socket.t to use ok() instead of is() where required - RT73039
         * Complete rewrite of module docs; list all the constants and
           functions, updated SYNOPSIS
         * Added convenient Exporter tag :addrinfo for all the gai/gni-related
           symbols
         * Provide static synthesized newSVpvn_flags() replacement for older
           Perls
         * Implement getnameinfo() NIx_NOHOST and NIx_NOSERV extension flags

  1.95    CHANGES:
         * Implement the remaining AI_*, EAI_* and NI_* constants from
           Socket::GetAddrInfo
         * Declare configure-time dependency on ExtUtils::Constants 0.23 for
           when building out of core
         * Initial attempt at dual-life extraction from bleadperl

12 years agoRemove explicit support for pre-7.0 VMS and pre-6.0 DEC C.
Craig A. Berry [Sun, 11 Dec 2011 00:51:49 +0000 (18:51 -0600)]
Remove explicit support for pre-7.0 VMS and pre-6.0 DEC C.

OpenVMS v7.0 was released in 1995.  There have been no reports of
recent releases of Perl building on versions that far back, yet we
still have quite a bit of code that explicitly supports versions
*prior* to v7.0.

There is a similar story for DEC C v6.0.  It was released in 1998,
and has been superceded by numerous subsequent versions.  Yet the
VMS-specific code in the core is littered with workarounds and
hacks that defend against deficiencies in very old compiler
versions.

This code is for all practical purposes no longer maintained or
maintainable, so the best path forward seems to be to remove it.
Anyone able and willing to commit to long-term support of it
could argue for its restoration, assuming Perl 5.14.x is not
adequate.