Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Perl class - how to create instance variable instead of class variable

by lyklev (Pilgrim)
on Aug 29, 2007 at 20:30 UTC ( [id://635930]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       my $self = shift;
    
  2. or download this
       $self{theValue}
    
  3. or download this
       $self -> {theValue}
    
  4. or download this
    package Test;
    
    ...
            $self -> {theValue} = $value; # note '->'
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found