[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Introduction



On Wed, 30 Jun 1999 16:14:12 -0500, Jonathan W. Daniel wrote:

>And one more thing. If your wanting to get into OOP and using modules, and
>you claim to be at a novice level, that's great, but you are jumping the
>gun a bit. Start with the fundamentals, then move on.

I second that. Hell, I'm a very active MacPerl user for close to 4 years
now, and I STILL don't use the OO stuff in Perl. Actually, you don't
don't need it. It slows down your program.

As for using modules, even those using an OO approach: that's a good
idea.

But I cannot stress this enough: modules and OO are *not* related.
Simply rename a library file so that the extension is ".pm", replace the
'require "Somelib.pl";' statement with 'use Somelib;', and there's a big
chance that it will work, just as well.

And you can put a class definition in your main script file too.
	Bart.

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org