"be consistent" | |
PerlMonks |
Re^2: How do I go from procedural to object oriented programming?by marinersk (Priest) |
on Apr 20, 2015 at 22:54 UTC ( [id://1124079]=note: print w/replies, xml ) | Need Help?? |
Okay. So we need a Class called Movies. The other folks on this thread will be far better suited to give technical details. I have no need for objects in my world, and use them only when I have to in order to use somebody else's Perl Module. But, in general, you will define an object called Movies, and in that definition, you will indicate that movies have attributes such as:
Once you've defined your Movies Class, you're almost ready for the second earth-shifting part of converting to OO.
In Section
Seekers of Perl Wisdom
|
|