From 6601a838aaf699f9763a8349d637ccb7f8d81e67 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 30 Oct 2007 12:42:28 +0000 Subject: [PATCH] Mention version.pm and new v-string portability warning in perldelta. Better wording for this warning in perldiag by Tom Wyant. p4raw-id: //depot/perl@32204 --- pod/perl5100delta.pod | 9 +++++++++ pod/perldiag.pod | 7 +++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pod/perl5100delta.pod b/pod/perl5100delta.pod index e518b40..32a763c 100644 --- a/pod/perl5100delta.pod +++ b/pod/perl5100delta.pod @@ -623,6 +623,10 @@ The C pragma now warns if a class tries to inherit from itself. C and C will now complain loudly if they are loaded via incorrect casing (as in C). (Johan Vromans) +=item C + +The C module provides support for version objects. + =item C The C pragma doesn't load C anymore. That means that code @@ -1373,6 +1377,11 @@ Two deprecation warnings have been added: (Rafael) Perl's command-line switch C<-P> is now deprecated. +=item v-string in use/require is non-portable + +Perl will warn you against potential backwards compatibility problems with +the C syntax. + =item perl -V C has several improvements, making it more useable from shell diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 21a3891..1dd79a3 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -4940,10 +4940,9 @@ are being ignored. (W portable) The use of v-strings is non-portable to older, pre-5.6, Perls. If you want your scripts to be backward portable, use the floating point version number: for example, instead of C say -C. This of course won't help: the older Perls -won't suddenly start understanding newer features, but at least -they will show a sensible error message indicating the required -minimum version. +C. This of course won't make older Perls suddenly start +understanding newer features, but at least they will show a sensible +error message indicating the required minimum version. This warning is suppressed if the C is preceded by a C (see C in L). -- 2.7.4