Change 34221 by [EMAIL PROTECTED] on 2008/08/24 13:41:40

        Subject: [perl #57646] Weird non-equivalence between $::{'a'} = sub {} 
and *::a = sub {} 
        From: "Bram via RT" <[EMAIL PROTECTED]>
        Date: Wed, 06 Aug 2008 01:24:22 -0700
        Message-ID: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/pod/perlmod.pod#43 edit

Differences ...

==== //depot/perl/pod/perlmod.pod#43 (text) ====
Index: perl/pod/perlmod.pod
--- perl/pod/perlmod.pod#42~32213~      2007-11-02 16:59:27.000000000 -0700
+++ perl/pod/perlmod.pod        2008-08-24 06:41:40.000000000 -0700
@@ -94,18 +94,9 @@
 package mentioned earlier is named C<%OUTER::INNER::>.
 
 The value in each entry of the hash is what you are referring to when you
-use the C<*name> typeglob notation.  In fact, the following have the same
-effect, though the first is more efficient because it does the symbol
-table lookups at compile time:
+use the C<*name> typeglob notation.
 
     local *main::foo    = *main::bar;
-    local $main::{foo}  = $main::{bar};
-
-(Be sure to note the B<vast> difference between the second line above
-and C<local $main::foo = $main::bar>. The former is accessing the hash
-C<%main::>, which is the symbol table of package C<main>. The latter is
-simply assigning scalar C<$bar> in package C<main> to scalar C<$foo> of
-the same package.)
 
 You can use this to print out all the variables in a package, for
 instance.  The standard but antiquated F<dumpvar.pl> library and
End of Patch.

Reply via email to