CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner: Re: [budman] private and protected methods: Edit Log



ChopperCharles
Novice

Mar 30, 2012, 2:52 PM


Views: 9645
Re: [budman] private and protected methods

Okay, I'm getting it now. There's another problem with the way that works though, in that if I don't have a $self passed in to a method, I cannot access properties of that class except through a function setter/getter. No direct access to $self->{dataItem}, even I have a getDataItem subroutine, bcause getDataItem is going to need a $self to get at that data. So in essence, I have to completely change the class I've been writing to work correctly... ah well, I learned something at least. (Err, not the foobar test classes I've been talking about, but rather the real code I'm working on :)

I'm assuming I'm not going to have any problems storing arrays or hashes in $self? (I know, big assumption)

Charles.


(This post was edited by ChopperCharles on Mar 30, 2012, 2:54 PM)


Edit Log:
Post edited by ChopperCharles (Novice) on Mar 30, 2012, 2:54 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives