What is your preferred way to get help?

2011-01-16 Thread Gabor Szabo
I guess each module author has his/her own preferred way how to get patches and other forms of help. I have started to work on a series of talks - that I'd probably develop with a series of blog posts - on how to contribute to and open source project with heavy focus on Perl projects. If

How to import Foo::Bar::mysub when caller writes 'use Foo qw(mysub)'?

2011-01-16 Thread David Christensen
module-authors: Let's say I have a CPAN distribution called Foo: # Foo.pm package Foo; And suppose the distribution includes: package Foo::Bar; sub mysub { print hello, world!\n } I would like callers to be able to import mysub() with a traditional 'use'

Re: How to import Foo::Bar::mysub when caller writes 'use Foo qw(mysub)'?

2011-01-16 Thread Shmuel Fomberg
Hi David. How about importing mysub from Foo::Bar to Foo, and let Exporter to deal with the next step? package Foo; use Foo::Bar qw{mysub}; our @EXPORT = qw{ mysub }; should work. Shmuel. On 2011/01/16 22:03, David Christensen wrote: module-authors: Let's say I have a CPAN

Re: How to import Foo::Bar::mysub when caller writes 'use Foo qw(mysub)'?

2011-01-16 Thread Shawn H Corey
On 11-01-16 03:03 PM, David Christensen wrote: Bonus question: use Fooqw( :all ); What is the best way to accomplish the goal? Fill in @EXPORT and @EXPORT_OK as needed. # -- # Exports use base qw( Exporter ); our @EXPORT = qw( ); our

Re: What is your preferred way to get help?

2011-01-16 Thread David Golden
On Sun, Jan 16, 2011 at 5:09 AM, Gabor Szabo szab...@gmail.com wrote: My objective is getting more people to contribute to CPAN. I don't necessarily want more modules. I'd prefer to get more people involved in maintaining and improving the already existing module. Reactions off the top of my

Re: How to import Foo::Bar::mysub when caller writes 'use Foo qw(mysub)'?

2011-01-16 Thread David Christensen
Shmuel Fomberg wrote: How about importing mysub from Foo::Bar to Foo, and let Exporter to deal with the next step? package Foo; use Foo::Bar qw{mysub}; our @EXPORT = qw{ mysub }; should work. I was wondering about that idea, but was doubtful. Let's try it: 2011-01-16 13:47:47

How to use Carp::Internal and Carp::CarpInternal?

2011-01-16 Thread David Christensen
module-authors: I'm not sure where to ask this question, so please refer me to a better resource if there is one... I'm trying to implement a centralized exception generation function, say myconfess(), that I can use throughout my code. myconfess() will do some things and then call