Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
go ahead... be a heretic
 
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 making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2014-04-17 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (453 votes), past polls