Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Indirect variable name

by FreakyGreenLeaky (Sexton)
on Nov 20, 2008 at 12:50 UTC ( [id://724856]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $var = 'Util::Stuff::aaa1'
    
  2. or download this
    package Util::Stuff::aaa1;
    sub flag { 10 }
    ...
    
  3. or download this
    print $"$var"   # oogly, I know :-)
    
  4. or download this
    print Util::Stuff::aaa1->flag ...
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://724856]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-04-16 06:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found