Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: OOP method usage

by Don Coyote (Hermit)
on Jul 07, 2012 at 10:31 UTC ( [id://980479]=note: print w/replies, xml ) Need Help??


in reply to OOP method usage

There are not any values being passed to _sub1() from sub2()

by calling _sub1() using the object method you can pass the object into _sub1() and return the adapted value

sub sub2() { #public method my $self = shift; $self->_sub1(); }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://980479]
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: (4)
As of 2024-04-25 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found