Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Grabbing Variable Names

by ihb (Deacon)
on Mar 30, 2005 at 21:19 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-19 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found