Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Is it possible to get reference to scalar based on scalar name

by mrider (Beadle)
on Sep 05, 2012 at 17:31 UTC ( #991896=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Check if this is a problem widget, and if it is, is it visible
    if(
    ...
      ) {
        ...
    }
    
  2. or download this
    #Get reference to widget based on name then check if it's visible
    my $ref = \${$widget_name};
    if($$ref->IsVisible()) {
        ...
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://991896]
Front-paged by Arunbear
help
Chatterbox?
and the fog begins to lift...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2018-02-22 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (288 votes). Check out past polls.

    Notices?