In perl.git, the branch maint-5.20 has been updated <http://perl5.git.perl.org/perl.git/commitdiff/879f34634bf378b83723973922fab2ce47f3eae8?hp=9161f54e0c8f08b12c147551d0037757a3f5c171>
- Log ----------------------------------------------------------------- commit 879f34634bf378b83723973922fab2ce47f3eae8 Author: Alexandr Ciornii <[email protected]> Date: Sun Mar 16 14:12:42 2014 +0200 File::Copy does not overwrite read-only files (cherry picked from commit ed9113faaa67f462b522e2da6b13ae131fea4cee) M lib/File/Copy.pm commit ec6f0dae444dc1ffbb9c0226f054ca39629db00b Author: Abigail <[email protected]> Date: Sun Jul 20 04:08:08 2014 +0200 Add new release to perlhist (cherry picked from commit 0f824be90600ec3504034b0173fa6b67f3a4d4e8) M pod/perlhist.pod commit 7a27bfa8d2020234e5c93848580982a59d367bff Author: Matthew Horsfall (alh) <[email protected]> Date: Fri Jun 20 08:21:52 2014 -0400 Add new release to perlhist (cherry picked from commit 62406c838c92e5d5cbf29c4f06850350380f4ef5) M pod/perlhist.pod commit b6cfdd2f63ecabaa8f87c7fb762d41b6893ca304 Author: Karl Williamson <[email protected]> Date: Tue Jul 15 16:05:12 2014 -0600 perlop: Grammatical nit. 'either' refers only to one of two possibilities. Since this has more than that, 'either' is grammatically incorrect. (cherry picked from commit 5cc4165376630d8930e99d7864bd63d1e70853f5) M pod/perlop.pod commit c72263e8234d19fd95ff7c4a8319c7842bd338fa Author: Jarkko Hietaniemi <[email protected]> Date: Sun Jul 20 09:10:27 2014 -0400 Warn against tmpfile, and mention perlclib. (cherry picked from commit bbc89b61fda2c0d03d0a57a32abcf992fcf30e99) M pod/perlhacktips.pod commit 3044a27083cf2c3fb2f46e4d9069e105afe05610 Author: Steve Hay <[email protected]> Date: Fri Jul 18 15:59:34 2014 +0100 perlpolicy - Add encoding to fix podcheck.t following 0c6082f411 (cherry picked from commit 3db23aeceed93497d1456928f0d3561a32f74a02) M pod/perlpolicy.pod commit 61ffe883ad7f413cf053a55951a11a2b278035d8 Author: Ricardo Signes <[email protected]> Date: Fri Jul 18 09:03:52 2014 -0400 perlpolicy: update list of moderators (cherry picked from commit 0c6082f4114551048a119c8b2c9dc455bd071751) M pod/perlpolicy.pod commit 5ed0ed6c7ed63d9435027575564197eb4d4234c7 Author: Steve Hay <[email protected]> Date: Fri Jul 18 08:36:15 2014 +0100 perlpolicy - Note that minimal build fixes are acceptable for maint too Changes like 31114fe991, which has just been cherry-picked into maint-5.20, should be allowed. (cherry picked from commit bd21af11d4fd0396606700004aa5eb68a654ff6c) M pod/perlpolicy.pod commit 5e8d6835e0e478ec55b5fd560e622f84453ad204 Author: Ricardo Signes <[email protected]> Date: Mon Jul 7 13:58:26 2014 -0400 add the standards of conduct to perlpolicy (cherry picked from commit 17c80487b48847f88d152c5ea537f4fd68291fb3) M pod/perlpolicy.pod commit a73e22d974791ce107af95ea855de35c3bd9a0a3 Author: Aaron Crane <[email protected]> Date: Sat Jul 5 01:53:57 2014 +0100 pod/perlre.pod: fix typo in example code (cherry picked from commit 22dc67195d1219cb0c80b695155d55bcfafa1551) M pod/perlre.pod commit 42f378b7e2153a05106bec6b6a546270506b4619 Author: Karl Williamson <[email protected]> Date: Mon May 19 16:36:33 2014 -0600 perlre: Clarify /x eol can't be escaped (cherry picked from commit 8be3c4ca13376174c7c23f3a85d05cb2920d9170) M pod/perlre.pod ----------------------------------------------------------------------- Summary of changes: lib/File/Copy.pm | 3 ++- pod/perlhacktips.pod | 7 +++++++ pod/perlhist.pod | 4 +++- pod/perlop.pod | 2 +- pod/perlpolicy.pod | 47 ++++++++++++++++++++++++++++++++++++++++++----- pod/perlre.pod | 4 +++- 6 files changed, 58 insertions(+), 9 deletions(-) diff --git a/lib/File/Copy.pm b/lib/File/Copy.pm index a20a964..95fb4e1 100644 --- a/lib/File/Copy.pm +++ b/lib/File/Copy.pm @@ -22,7 +22,7 @@ sub syscopy; sub cp; sub mv; -$VERSION = '2.29'; +$VERSION = '2.30'; require Exporter; @ISA = qw(Exporter); @@ -370,6 +370,7 @@ written to. If the second argument does not exist but the parent directory does exist, then it will be created. Trying to copy a file into a non-existent directory is an error. Trying to copy a file on top of itself is also an error. +C<copy> will not overwrite read-only files. If the destination (second argument) already exists and is a directory, and the source (first argument) is not a filehandle, then the source diff --git a/pod/perlhacktips.pod b/pod/perlhacktips.pod index 2f19c04..f2f2e6c 100644 --- a/pod/perlhacktips.pod +++ b/pod/perlhacktips.pod @@ -581,6 +581,7 @@ snprintf() - the return type is unportable. Use my_snprintf() instead. =head2 Security problems Last but not least, here are various tips for safer coding. +See also L<perlclib> for libc/stdio replacements one should use. =over 4 @@ -592,6 +593,12 @@ Or we will publicly ridicule you. Seriously. =item * +Do not use tmpfile() + +Use mkstemp() instead. + +=item * + Do not use strcpy() or strcat() or strncpy() or strncat() Use my_strlcpy() and my_strlcat() instead: they either use the native diff --git a/pod/perlhist.pod b/pod/perlhist.pod index 4c6b16d..de4737c 100644 --- a/pod/perlhist.pod +++ b/pod/perlhist.pod @@ -32,7 +32,7 @@ Leon Brocard, Dave Mitchell, Jesse Vincent, Ricardo Signes, Steve Hay, Matt S Trout, David Golden, Florian Ragwitz, Tatsuhiko Miyagawa, Chris C<BinGOs> Williams, Zefram, Ãvar Arnfjörð Bjarmason, Stevan Little, Dave Rolsky, Max Maischein, Abigail, Jesse Luehrs, Tony Cook, -Dominic Hargreaves, Aaron Crane and Aristotle Pagaltzis. +Dominic Hargreaves, Aaron Crane, Aristotle Pagaltzis and Matthew Horsfall. =head2 PUMPKIN? @@ -532,6 +532,8 @@ the strings?). Ricardo 5.20.0 2014-May-27 Ricardo 5.21.0 2014-May-27 The 5.21 development track + Matthew H 5.21.1 2014-Jun-20 + Abigail 5.21.2 2014-Jul-20 =head2 SELECTED RELEASE SIZES diff --git a/pod/perlop.pod b/pod/perlop.pod index 7928370..0535bfd 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -1751,7 +1751,7 @@ test and never recompile by adding a C</o> (which stands for "once") after the trailing delimiter. Once upon a time, Perl would recompile regular expressions unnecessarily, and this modifier was useful to tell it not to do so, in the -interests of speed. But now, the only reasons to use C</o> are either: +interests of speed. But now, the only reasons to use C</o> are one of: =over diff --git a/pod/perlpolicy.pod b/pod/perlpolicy.pod index 8120cd8..1dcb1a5 100644 --- a/pod/perlpolicy.pod +++ b/pod/perlpolicy.pod @@ -1,3 +1,5 @@ +=encoding utf8 + =head1 NAME perlpolicy - Various and sundry policies and commitments related to the Perl core @@ -260,7 +262,7 @@ acceptable. =item * Acceptable documentation updates are those that correct factual errors, -explain significant bugs or deficiencies in the current implementation, +explain significant bugs or deficiencies in the current implementation, or fix broken markup. =item * @@ -271,7 +273,7 @@ are not acceptable. =item * Patches that fix crashing bugs that do not otherwise change Perl's -functionality or negatively impact performance are acceptable. +functionality or negatively impact performance are acceptable. =item * @@ -286,12 +288,12 @@ releases are acceptable. =item * -Updates to dual-life modules should consist of minimal patches to +Updates to dual-life modules should consist of minimal patches to fix crashing or security issues (as above). =item * -Minimal patches that fix platform-specific test failures or +Minimal patches that fix platform-specific test failures or build or installation issues are acceptable. When these changes are made to dual-life modules for which CPAN is canonical, any changes should be coordinated with the upstream author. @@ -323,7 +325,7 @@ maint branches. Any committer may cherry-pick any commit from blead to a maint branch if they send mail to perl5-porters announcing their intent to cherry-pick -a specific commit along with a rationale for doing so and at least two +a specific commit along with a rationale for doing so and at least two other committers respond to the list giving their assent. (This policy applies to current and former pumpkings, as well as other committers.) @@ -482,6 +484,41 @@ in documentation about how behaviour has changed from previous releases, but, with very few exceptions, documentation isn't "dual-life" -- it doesn't need to fully describe how all old versions used to work. +=head1 STANDARDS OF CONDUCT + +The official forum for the development of perl is the perl5-porters mailing +list, mentioned above, and its bugtracker at rt.perl.org. All participants in +discussion there are expected to adhere to a standard of conduct. + +=over 4 + +=item * + +Always be civil. + +=item * + +Heed the moderators. + +=back + +Civility is simple: stick to the facts while avoiding demeaning remarks and +sarcasm. It is not enough to be factual. You must also be civil. Responding +in kind to incivility is not acceptable. + +If the list moderators tell you that you are not being civil, carefully +consider how your words have appeared before responding in any way. You may +protest, but repeated protest in the face of a repeatedly reaffirmed decision +is not acceptable. + +Unacceptable behavior will result in a public and clearly identified warning. +Repeated unacceptable behavior will result in removal from the mailing list. +The first removal is for one month. Subsequent removals will double in length. +After six months with no warning, a user's ban length is reset. Removals, like +warnings, are public. + +The list of moderators will be public knowledge. At present, it is: +Aaron Crane, Andy Dougherty, Ricardo Signes, Steffen Müller. =head1 CREDITS diff --git a/pod/perlre.pod b/pod/perlre.pod index d8c9059..5dc404c 100644 --- a/pod/perlre.pod +++ b/pod/perlre.pod @@ -150,6 +150,8 @@ whitespace or C<#> characters in the pattern (outside a bracketed character class, which is unaffected by C</x>), then you'll either have to escape them (using backslashes or C<\Q...\E>) or encode them using octal, hex, or C<\N{}> escapes. +It is ineffective to try to continue a comment onto the next line by +escaping the C<\n> with a backslash or C<\Q>. You can use L</(?#text)> to create a comment that ends earlier than the end of the current line, but C<text> also can't contain the closing @@ -1675,7 +1677,7 @@ An example of how this might be used is as follows: /(?<NAME>(?&NAME_PAT))(?<ADDR>(?&ADDRESS_PAT)) (?(DEFINE) (?<NAME_PAT>....) - (?<ADRESS_PAT>....) + (?<ADDRESS_PAT>....) )/x Note that capture groups matched inside of recursion are not accessible -- Perl5 Master Repository
