X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlref.pod;h=e8e9ab78fac8e792eaffc83199b4d6cefebe6a5c;hb=17c338f39c13131c1bc175ef38013b54bc98396d;hp=274f43d0290e807a13dcb7524f427cf2f6736892;hpb=c47ff5f1a1ef5d0daccf1724400a446cd8e93573;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlref.pod b/pod/perlref.pod index 274f43d..e8e9ab7 100644 --- a/pod/perlref.pod +++ b/pod/perlref.pod @@ -243,7 +243,9 @@ All of these are self-explanatory except for C<*foo{IO}>. It returns the IO handle, used for file handles (L), sockets (L and L), and directory handles (L). For compatibility with previous -versions of Perl, C<*foo{FILEHANDLE}> is a synonym for C<*foo{IO}>. +versions of Perl, C<*foo{FILEHANDLE}> is a synonym for C<*foo{IO}>, though it +is deprecated as of 5.8.0. If deprecation warnings are in effect, it will warn +of its use. C<*foo{THING}> returns undef if that particular THING hasn't been used yet, except in the case of scalars. C<*foo{SCALAR}> returns a reference to an @@ -528,7 +530,8 @@ makes it more than a bareword: $array{ +shift } $array{ shift @_ } -The B<-w> switch will warn you if it interprets a reserved word as a string. +The C pragma or the B<-w> switch will warn you if it +interprets a reserved word as a string. But it will no longer warn you about using lowercase words, because the string is effectively quoted. @@ -537,6 +540,13 @@ string is effectively quoted. B: This section describes an experimental feature. Details may change without notice in future versions. +B: The current user-visible implementation of pseudo-hashes +(the weird use of the first array element) is deprecated starting from +Perl 5.8.0 and will be removed in Perl 5.10.0, and the feature will be +implemented differently. Not only is the current interface rather ugly, +but the current implementation slows down normal array and hash use quite +noticeably. The 'fields' pragma interface will remain available. + Beginning with release 5.005 of Perl, you may use an array reference in some contexts that would normally require a hash reference. This allows you to access array elements using symbolic names, as if they