Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Lexical pad / attribute confusion

by adrianh (Chancellor)
on Dec 21, 2002 at 22:38 UTC ( [id://221679]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # new pad here for the file's scope
    
    ...
    }
    
    ... etc ...
    
  2. or download this
    my %foo : Bar = (answer => 42);
    
  3. or download this
    use attributes ();                                                   
    my %foo;
    attributes::->import(__PACKAGE__, \%z, 'Bent');                      
    %foo = (answer => 42);
    
  4. or download this
    use strict;
    use warnings;
    ...
    }
    
    AttrTest->dump_lex('runtime');
    
  5. or download this
    when setting Attr in Foo for HASH(0x8187bec) top-level pad is         
    +          
        SCALAR(0x8186018) -> $%foo = \\'%foo';                            
    +      
    ...
                                                                          
    +          
    when runtime top-level pad is
    
  6. or download this
    when init top-level pad is
        HASH(0x22dda8) -> $%bar = \{};
    ...
    
    when runtime top-level pad is
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://221679]
Approved by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2024-04-25 01:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found