Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: Grabbing Variable Names

by ihb (Deacon)
on Mar 30, 2005 at 21:19 UTC ( #443610=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo;
    print ref \$::{foo}; # "SCALAR"
    ...
    sub baz;
    print ref \$::{baz}; # "GLOB"
    $baz = $baz;         # Just to mention the symbol "baz".
    
  2. or download this
    sub foo;
    *{-1} = sub { 'oh' };     # Create a sub called "-1".
    ...
    
    #$foo;                    # But all this would change if you
                              # uncommented "$foo;".
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://443610]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (12)
As of 2014-07-29 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (216 votes), past polls