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
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
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
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
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
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
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
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
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