Re: extending modules

2003-10-01 Thread Jeff 'japhy' Pinyan
On Oct 1, Kevin Pfeiffer said: >> package Unix::AliasFile::Extended; >> use base 'Unix::AliasFile'; >> >> sub changed_method { ... } >> sub new_method { ... } >> >This worked better and was easier (once I remembered to update 'ISA@') than >I expected! I ended up adding two or three new met

Re: extending modules

2003-10-01 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Kevin Pfeiffer wrote: [...] > This worked better and was easier (once I remembered to update 'ISA@') > than I expected! I ended up adding two or three new methods and modifying > four. Errr, ah "@ISA"... (that was the Hebrew notation maybe). -- Kevin Pfeiffer In

Re: extending modules

2003-10-01 Thread Kevin Pfeiffer
Hi, In article <[EMAIL PROTECTED]>, Jeff 'Japhy' Pinyan wrote: > Typically, you create a sub-module. > > package Unix::AliasFile::Extended; > use base 'Unix::AliasFile'; > > sub changed_method { ... } > sub new_method { ... } > > 1; > > Then you just use Unix::AliasFile::Extended in

Re: extending modules

2003-09-30 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Jeff 'Japhy' Pinyan wrote: > On Sep 29, Kevin Pfeiffer said: [...] >>My working copy is now called AliasFilePlus. >> >>What do I do with this if I try to share it? The changes to the module >>seemed too great (and too complex) for me to place them in the main >>prog

Re: extending modules

2003-09-30 Thread Kevin Pfeiffer
In article <[EMAIL PROTECTED]>, Rob Dixon wrote: > Kevin wrote: >> >> >> I've updated the docs and wrote "...based on version >> xxx of Unix::AliasFile by Steve Snodgrass...", etc. > > Mister Snodgrass is a character in The Pickwick Papers > invented by Charles Dickens. He is no "Foo" or "Bar". >

Re: extending modules

2003-09-29 Thread Jeff 'japhy' Pinyan
On Sep 29, Kevin Pfeiffer said: >I'm working on a nice frontend to the Unix::AliaseFile module for managing >'aliases'. In the process I've extended a couple methods in the module and >added a new one. > >There is a show_user method that returns all aliases of which a user is a >member; there's al

Re: extending modules

2003-09-29 Thread Rob Dixon
Kevin wrote: > > > I've updated the docs and wrote "...based on version > xxx of Unix::AliasFile by Steve Snodgrass...", etc. Mister Snodgrass is a character in The Pickwick Papers invented by Charles Dickens. He is no "Foo" or "Bar". Proud of the soil on which I stand :) Rob Dixon Leicester ENG

extending modules

2003-09-29 Thread Kevin Pfeiffer
Hi, I'm working on a nice frontend to the Unix::AliaseFile module for managing 'aliases'. In the process I've extended a couple methods in the module and added a new one. There is a show_user method that returns all aliases of which a user is a member; there's also a "Toggle on/off" that uses co