Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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
Domain Nodelet?
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 scrutinizing the Monastery: (5)
As of 2023-06-08 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (32 votes). Check out past polls.

    Notices?