summaryrefslogtreecommitdiff
path: root/lib/fields.pm
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-07 21:29:46 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-07 21:29:46 +0000
commit51301382055ed3f3276ad3e2c544fb9e477a270e (patch)
treef2e0daa5089eeda27af801f69dd3d042dda34424 /lib/fields.pm
parenta8119d38469f151dd6b4e5910e0c600b5f2c21e1 (diff)
downloadperl-51301382055ed3f3276ad3e2c544fb9e477a270e.tar.gz
doc tweaks suggested by Abigail, M.J.T. Guy, and Larry Wall
p4raw-id: //depot/perl@1357
Diffstat (limited to 'lib/fields.pm')
-rw-r--r--lib/fields.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fields.pm b/lib/fields.pm
index 2c75ff4e61..05271a3dc0 100644
--- a/lib/fields.pm
+++ b/lib/fields.pm
@@ -42,11 +42,11 @@ and the 'base' pragma modules. The 'base' pragma will copy fields
from base classes and the 'fields' pragma adds new fields. Field
names that start with an underscore character are made private to a
class and are not visible to subclasses. Inherited fields can be
-overridden but will generate a warning if used together with the -w
-option.
+overridden but will generate a warning if used together with the C<-w>
+switch.
The effect of all this is that you can have objects with named fields
-which are as compact and as fast arrays too access. This only works
+which are as compact and as fast arrays to access. This only works
as long as the objects are accessed through properly typed variables.
For untyped access to work you have to make sure that a reference to
the proper %FIELDS hash is assigned to the 0'th element of the array