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

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

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


Mar 30, 2012, 8:37 AM

Views: 18900
Re: [ChopperCharles] private and protected methods

I looked over the scripts you sent.
I tried the with the assertions, and it ran as expected

Hello fooBar.
Hello fooBar.

Note: I updated my previous reply to show a bug with your $m_LastError attribute. If you switch it to use the lastError setter/accessor style you should be fine. The problem occurs when you add more than one instance of TacoBell.

Edit: I would really ditch $m_Self. Its another bug waiting to happen. It too is prone to multiple instances issue. Currently you only use it in new(), but anywhere else would cause you to access incorrect objects, as the reference is rewritten with each TacoBell->new() that is created.

(This post was edited by budman on Mar 30, 2012, 8:46 AM)

Edit Log:
Post edited by budman (User) on Mar 30, 2012, 8:46 AM

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

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