Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 perusing the Monastery: (12)
As of 2014-09-22 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls