Re: perl OOP question

2003-06-26 Thread William Wueppelmann
Andy Lester wrote: Is there any way I can just say: use ISO::types::ILLString; my $s = new ILLString("This is a string"); First, what you're talking about isn't object related. It's just package functions. You need to look at the Exporter module. Bascially, you want to do this (off the topo

Re: perl OOP question

2003-06-25 Thread Brad Baxter
g the Exporter module to > export function names into the caller's namespace. Hi Andy, Yes, I see your point about Exporter. I'll grant that David might not need oop for his purposes. However, he did say "perl OOP question", he does mention "classes" and the subr

Re: perl OOP question

2003-06-24 Thread David Christensen
You know, that is a very cool module. I never would have looked for that under 'Business', though guess I've got my library blinders on :-) And I think I "get" EXPORT now. Thanks. So much to learn, so little time -David On Tuesday 24 June 2003 03:51 pm, Andy Lester wrote: > >Whether y

Re: perl OOP question

2003-06-24 Thread Andy Lester
Whether you use the "indirect object" form of method call as you're doing above, or the "object-oriented" form, the class name determines where Perl will find the new() method. Since there isn't a class named literally "ILLString", Perl will complain about the latter call above (as you've no doubt

RE: perl OOP question

2003-06-24 Thread Christensen, David A. (CHT)
4 2:52 PM > To: [EMAIL PROTECTED] > Subject: Re: perl OOP question > > On Mon, 23 Jun 2003, David Christensen wrote: > > I've built a some classes (eg: ILLString) which live in ./ISO/types > > The class "header" is: Package ISO::types::ILLString > &g

Re: perl OOP question

2003-06-24 Thread Brad Baxter
On Mon, 23 Jun 2003, David Christensen wrote: > I've built a some classes (eg: ILLString) which live in ./ISO/types > The class "header" is: Package ISO::types::ILLString > > Everything in my test program works fine if (in the top-level directory) I > say: > > use ISO::types::ILLString; > my $s

Re: perl OOP question

2003-06-23 Thread David Christensen
Thanks, Andy... I'll chew on that awhile :-) -David On Monday 23 June 2003 08:43 pm, Andy Lester wrote: > >Is there any way I can just say: > > > >use ISO::types::ILLString; > >my $s = new ILLString("This is a string"); > > First, what you're talking about isn't object related. It's just > packa

Re: perl OOP question

2003-06-23 Thread Andy Lester
Is there any way I can just say: use ISO::types::ILLString; my $s = new ILLString("This is a string"); First, what you're talking about isn't object related. It's just package functions. You need to look at the Exporter module. Bascially, you want to do this (off the topof my head) package I

perl OOP question

2003-06-23 Thread David Christensen
Hi All I have a (dumb) question :-) I've built a some classes (eg: ILLString) which live in ./ISO/types The class "header" is: Package ISO::types::ILLString Everything in my test program works fine if (in the top-level directory) I say: use ISO::types::ILLString; my $s = new ISO::types::I