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

Perl's equivalent to Python's hasattr and getattr? (class variable details)

by MistaMuShu (Beadle)
on Jul 28, 2005 at 23:19 UTC ( [id://479170]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Thing;
    
    ...
    }
    
    1;
    
  2. or download this
    sub set {
      my $self = shift;
    ...
        #set class_variable var to $val
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found