summaryrefslogtreecommitdiff
path: root/pod/perldelta.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-27 21:57:40 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-27 21:57:40 +0000
commit479ba38336aaacaf3a7e00a4662d83e2dc833197 (patch)
tree3080fad85b071cb55633ac23717fd5cf28bd64e0 /pod/perldelta.pod
parent741d59ba12a3c356a2e1dfd4bcdc0396b843a43e (diff)
downloadperl-479ba38336aaacaf3a7e00a4662d83e2dc833197.tar.gz
support fields::new() and fields::phash() to create pseudo-hash
objects and plain pseudo-hashes respectively (this avoids users from having to diddle %FIELDS directly); update documentation to suit (from original fields::phash() implementation by Peter Scott <Peter@PSDT.com>) p4raw-id: //depot/perl@5293
Diffstat (limited to 'pod/perldelta.pod')
-rw-r--r--pod/perldelta.pod6
1 files changed, 6 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 97db6cc8c8..6d17634e9e 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -1042,6 +1042,12 @@ delete() now works on pseudo-hashes. When given a pseudo-hash element
or slice it deletes the values corresponding to the keys (but not the keys
themselves). See L<perlref/"Pseudo-hashes: Using an array as a hash">.
+Pseudo-hash slices with constant keys are now optimized to array lookups
+at compile-time.
+
+The C<fields> pragma now provides ways to create pseudo-hashes, via
+fields::new() and fields::phash(). See L<fields>.
+
=head2 C<goto &sub> and AUTOLOAD
The C<goto &sub> construct works correctly when C<&sub> happens