Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: My first stab at OO perl...

by astaines (Curate)
on Jul 17, 2002 at 16:01 UTC ( #182479=note: print w/replies, xml ) Need Help??

in reply to My first stab at OO perl...

Very nice - and far better than my first (or indeed current) attempts at OO code. One query - Is it a good idea to have a get_total function which does the additon. My first instinct would be to make add_expenses and delete_expenses keep the _TOTAL up to date at all times. Any opinons on this?

Anthony Staines

Replies are listed 'Best First'.
Re: Re: My first stab at OO perl...
by Theseus (Pilgrim) on Jul 17, 2002 at 16:11 UTC
    I thought about that, but I figured it would be less expensive to do the math only when I actually need the number, rather than every time I would have changed. I figure if I'm going to access the data through a method, I might as well have it generate it on the fly and not when I don't need it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://182479]
[muthusathish]: Hi All i need a help
[Eily]: hello muthusathish, we have many helps here
[muthusathish]: i have a perl based dll, how to decompile
[hippo]: :-D
[Eily]: you mean a dll where the SW was written in perl? That sounds unlikely
[muthusathish]: please help me regarding this
[hippo]: Easier just to go and look at the source, no?
[Eily]: mostly because perl isn't compiled in the usual sense of the meaning, you can't execute the opcodes directly, you need the perl engine
[muthusathish]: i dont have the environment too, but i need to get the logics so that i can re-wite
[Eily]: what makes you think your dll is "perl based" ?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (11)
As of 2018-02-23 09:10 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (301 votes). Check out past polls.