X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperl56delta.pod;h=097f43e6b5bc5bcc705e5beb0fa041f8ad481115;hb=4447dfc12157eb387a12bf297bbc4f4c8c49a7a6;hp=fc0d6687262e42958b1f097b792166276761267a;hpb=0e06870bf080a38cda51c06c6612359afc2334e1;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perl56delta.pod b/pod/perl56delta.pod index fc0d668..097f43e 100644 --- a/pod/perl56delta.pod +++ b/pod/perl56delta.pod @@ -1,6 +1,6 @@ =head1 NAME -perldelta - what's new for perl v5.6.0 +perl56delta - what's new for perl v5.6.0 =head1 DESCRIPTION @@ -112,16 +112,14 @@ to check if you're running a particular version of Perl: # new features supported } -C and C also have some special magic to support such literals. -They will be interpreted as a version rather than as a module name: +C and C also have some special magic to support such +literals, but this particular usage should be avoided because it leads to +misleading error messages under versions of Perl which don't support vector +strings. Using a true version number will ensure correct behavior in all +versions of Perl: - require v5.6.0; # croak if $^V lt v5.6.0 - use v5.6.0; # same, but croaks at compile-time - -Alternatively, the C may be omitted if there is more than one dot: - - require 5.6.0; - use 5.6.0; + require 5.006; # run time check for v5.6 + use 5.006_001; # compile time check for v5.6.1 Also, C and C support the Perl-specific format flag C<%v> to print ordinals of characters in arbitrary strings: @@ -457,7 +455,7 @@ When the last non-weak reference to an object is deleted, the object is destroyed and all the weak references to the object are automatically undef-ed. -To use this feature, you need the WeakRef package from CPAN, which +To use this feature, you need the Devel::WeakRef package from CPAN, which contains additional documentation. NOTE: This is an experimental feature. Details are subject to change. @@ -1013,7 +1011,7 @@ messages. For example: =head1 NAME - sample - Using GetOpt::Long and Pod::Usage + sample - Using Getopt::Long and Pod::Usage =head1 SYNOPSIS @@ -2989,7 +2987,7 @@ warning. And in Perl 5.005, this special treatment will cease. If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup. -There may also be information at http://www.perl.com/perl/, the Perl +There may also be information at http://www.perl.com/perl/ , the Perl Home Page. If you believe you have an unreported bug, please run the B