summaryrefslogtreecommitdiff
path: root/pod/perlmod.pod
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-14 06:08:20 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-14 06:08:20 +0000
commitd3ebb66bfe2af46e05e5492400a346b2358cbbb2 (patch)
tree3932d5d4ce9b0f2161d0d0528a81c33d7445e085 /pod/perlmod.pod
parent2c2e0e8c03d67909bd8b889b6cdbb201bea519fc (diff)
downloadperl-d3ebb66bfe2af46e05e5492400a346b2358cbbb2.tar.gz
doc patches from Tom Christiansen <tchrist@chthon.perl.com> (via PM)
Date: Mon, 13 Jul 1998 19:09:09 -0600 Message-Id: <199807140109.TAA04678@chthon.perl.com> Subject: perlmod.pod patch -- Date: Mon, 13 Jul 1998 18:37:07 -0600 Message-Id: <199807140037.SAA04556@chthon.perl.com> Subject: perlbook.pod patch p4raw-id: //depot/perl@1484
Diffstat (limited to 'pod/perlmod.pod')
-rw-r--r--pod/perlmod.pod14
1 files changed, 10 insertions, 4 deletions
diff --git a/pod/perlmod.pod b/pod/perlmod.pod
index 2a0f6fecb6..6da31dee3c 100644
--- a/pod/perlmod.pod
+++ b/pod/perlmod.pod
@@ -26,10 +26,16 @@ packages by prefixing the identifier with the package name and a double
colon: C<$Package::Variable>. If the package name is null, the C<main>
package is assumed. That is, C<$::sail> is equivalent to C<$main::sail>.
-(The old package delimiter was a single quote, but double colon
-is now the preferred delimiter, in part because it's more readable
-to humans, and in part because it's more readable to B<emacs> macros.
-It also makes C++ programmers feel like they know what's going on.)
+The old package delimiter was a single quote, but double colon is now the
+preferred delimiter, in part because it's more readable to humans, and
+in part because it's more readable to B<emacs> macros. It also makes C++
+programmers feel like they know what's going on--as opposed to using the
+single quote as separator, which was there to make Ada programmers feel
+like they knew what's going on. Because the old-fashioned syntax is still
+supported for backwards compatibility, if you try to use a string like
+C<"This is $owner's house">, you'll be accessing C<$owner::s>; that is,
+the $s variable in package C<owner>, which is probably not what you meant.
+Use braces to disambiguate, as in C<"This is ${owner}'s house">.
Packages may be nested inside other packages: C<$OUTER::INNER::var>. This
implies nothing about the order of name lookups, however. All symbols