RE: Module Object and sub module function

2003-11-11 Thread Dan Muey
> > Any ideas what I'm missing ?? > > Hi Dan, Howdy > > It sounds like you have a concept of the purpose of > inheritance, but some of it backward, and some of that magic A lto of it backwards! ;p > is irrelevant to Perl, since Perl lacks types. The ISA > relationship means that you can s

Re: Module Object and sub module function

2003-11-10 Thread R. Joseph Newton
Rob Dixon wrote: > R. Joseph Newton wrote: > > > > Dan Muey wrote: > > > > > > > > > > > Basically I use the ParentName's $obj inside my functions > > > and they are expecting it as the first arg. > > > > > > $obj->MyModule::function($arg); would be the coolest way > > > (leaving my functions as s

Re: Module Object and sub module function

2003-11-10 Thread Rob Dixon
R. Joseph Newton wrote: > > Dan Muey wrote: > > > > > > > Basically I use the ParentName's $obj inside my functions > > and they are expecting it as the first arg. > > > > $obj->MyModule::function($arg); would be the coolest way > > (leaving my functions as sub function instead of sub > > NameSpace

Re: Module Object and sub module function

2003-11-09 Thread R. Joseph Newton
"Gupta, Sharad" wrote: > Maybe OT. But just curious. What do the experts say about exporting function from OO > modules??. > Everytime i need something like this, i end up making those functions as Class > methods. > > -Sharad In most cases, you should. Access through an object provides contex

Re: Module Object and sub module function

2003-11-09 Thread R. Joseph Newton
Dan Muey wrote: > > > Basically I use the ParentName's $obj inside my functions > and they are expecting it as the first arg. > > $obj->MyModule::function($arg); would be the coolest way > (leaving my functions as sub function instead of sub > NameSpace::Evil::function) > > Is this possible or am

Re: Module Object and sub module function

2003-11-09 Thread R. Joseph Newton
Dan Muey wrote: > Howdy folks, > > Yet another module question. > > I'm so close and I've done this but I can't get it to work. > > I am writing a module that is an extension/sub module of an existing module. > > use ... MyNewSexxySubModule qw(function); > > $obj = new->Original::Package(); > for(

Re: Module Object and sub module function

2003-10-30 Thread Rob Dixon
Dan Muey wrote: > > Sorry for the confusion, I was switching example names on everyone. > > I think I've got it. > > I've made it object oriented and functional based. (Gulp, kinda scary :-)) > > I have This is in your Mymodule.pm presumably? > package Parent::Module::MyModule; My only proviso i

RE: Module Object and sub module function

2003-10-29 Thread Kevin Pfeiffer
Hi Dan, In article <[EMAIL PROTECTED]>, Dan Muey wrote: > Sorry for the confusion, I was switching example names on everyone. > > I think I've got it. > > I've made it object oriented and functional based. (Gulp, kinda scary :-)) > > I have > > package Parent::Module::MyModule; You may not n

RE: Module Object and sub module function

2003-10-29 Thread Gupta, Sharad
ctober 29, 2003 3:34 PM > To: [EMAIL PROTECTED] > Subject: RE: Module Object and sub module function > > > Sorry for the confusion, I was switching example names on everyone. > > I think I've got it. > > I've made it object oriented and functional based. (Gulp,

RE: Module Object and sub module function

2003-10-29 Thread Dan Muey
Sorry for the confusion, I was switching example names on everyone. I think I've got it. I've made it object oriented and functional based. (Gulp, kinda scary :-)) I have package Parent::Module::MyModule; With simply bare function names like so: (IE not Parent::Module::functionname {} so as n

RE: Module Object and sub module function

2003-10-29 Thread Dan Muey
> > > Any ideas what I'm missing ?? > > > > You've missed showing us where you've screwed up! > > > > Cheers, > > > > Thank god Rob wrote this, I thought I had been asleep for > about 6 months and there was a whole new way to access into a > symbol table looking for a class constructor!! Jus

Re: Module Object and sub module function

2003-10-29 Thread Wiggins d Anconia
> Hi Dan. > > There's a few things wrong here, and I'm struggling to work out what you're > trying to do. > > Dan Muey wrote: > > > > Yet another module question. > > > > I'm so close and I've done this but I can't get it to work. > > > > I am writing a module that is an extension/sub module of

Re: Module Object and sub module function

2003-10-29 Thread Rob Dixon
Hi Dan. There's a few things wrong here, and I'm struggling to work out what you're trying to do. Dan Muey wrote: > > Yet another module question. > > I'm so close and I've done this but I can't get it to work. > > I am writing a module that is an extension/sub module of an existing module. > > u

RE: Module Object and sub module function

2003-10-29 Thread Dan Muey
f sub NameSpace::Evil::function) Is this possible or am I just batty!? TIA Dan > > -Sharad > > > -Original Message- > > From: Dan Muey [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, October 29, 2003 9:56 AM > > To: [EMAIL PROTECTED] > > Subject:

RE: Module Object and sub module function

2003-10-29 Thread Gupta, Sharad
subclass. -Sharad > -Original Message- > From: Dan Muey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 29, 2003 9:56 AM > To: [EMAIL PROTECTED] > Subject: Module Object and sub module function > > > Howdy folks, > > Yet another module question. > >

Module Object and sub module function

2003-10-29 Thread Dan Muey
Howdy folks, Yet another module question. I'm so close and I've done this but I can't get it to work. I am writing a module that is an extension/sub module of an existing module. use ... MyNewSexxySubModule qw(function); $obj = new->Original::Package(); for(Original::Package::MyNewSexxySubMo