Re: Guide for creating Perl modules

2005-03-13 Thread Ofer Nave
José Castro wrote: Hi, guys. I recently wrote a guide for creating Perl modules. It's available on perlmonks, at http://perlmonks.org/?node_id=431702. (If you want to I can also send it here) I just realized a note to this list would be in order, so here it is :-) Enjoy, jac PS: Yes, thoughts are

Re: what namespace for future new module ?

2005-03-10 Thread Ofer Nave
A. Pagaltzis wrote: * Cédric Bouvier [EMAIL PROTECTED] [2005-03-10 10:25]: Thank you for the hint. I quickly looked on CPAN and there doesn't seem to be many modules under Cluster::, besides Cluster::Init which is more geared towards High Availability. I don't find Cluster:: sounds right.

Re: Parallel::Simple - bound args syntax

2005-03-02 Thread Ofer Nave
A. Pagaltzis wrote: * Ofer Nave [EMAIL PROTECTED] [2005-03-02 03:55]: I hate to force people to create an anonymous hash when it can be implied. Plus I'm already checking for hashref as the first param to allow options to be specified, so I'd have to change that... to what, I don't know

Re: Parallel::Simple - bound args syntax

2005-03-02 Thread Ofer Nave
Buddy Burden wrote: Ofer, In my case, it's much easier to pick off the first entry than the list. Why? my $opts = @_ ref $_[-1] eq 'HASH' ? pop : {}; my ($proj, @files) = @_; (from some code of mine; I have many functions defined like this) -- Buddy Ok, fine. That was a total

Re: Divide by 0? Was: Re: Introduction Letter

2005-03-01 Thread Ofer Nave
Austin Schutz wrote: I suppose I could try to create a use divide 0/undef/inf/crap pragma. Then you could do whatever you want. You'd still get a surprise if you ever forgot it though.. I think that's the best answer. Not a good idea for most programs, wonderful idea for math programs -

Re: Parallel::Simple - bound args syntax

2005-03-01 Thread Ofer Nave
Mark Stosberg wrote: On Tue, Mar 01, 2005 at 02:40:36PM -0800, Ofer Nave wrote: # getting fancy with arg binding my @hosts = qw( foo bar baz ); prun( map { my $host = $_; sub { test_host( $host ) } } @hosts ) or die( Parallel::Simple::errplus() ); I think this is simpler, because I can

Re: Introduction Letter

2005-02-28 Thread Ofer Nave
Andrew Savige wrote: --- Ofer Nave wrote: Here's the POD for my new Parallel::Simple module: Interface - To me, offering both: Parallel::Simple::run() and: Parallel::Simple-run() just makes the interface bigger -- more for the user to read and grok -- without any benefit

Re: Introduction Letter

2005-02-28 Thread Ofer Nave
Buddy Burden wrote: Ofer, With all due respect to Andrew, please remember that his is but one opinion. I've also now removed any traces of the run() synonym. You're right - why complicate things with no benefit. I didn't see anything wrong with the concept. Personally I would have done it

Re: better SEE ALSO sections

2005-02-28 Thread Ofer Nave
Andy Lester wrote: On Mon, Feb 28, 2005 at 04:05:09PM -0500, Mark Stosberg ([EMAIL PROTECTED]) wrote: I was hoping for more of a comparison with Data::Page, which is similar but already established. AND at 100% Devel::Cover coverage, thanks to yours truly! :-) xoxo, Andy I've never

Re: better SEE ALSO sections

2005-02-28 Thread Ofer Nave
A. Pagaltzis wrote: * Ofer Nave [EMAIL PROTECTED] [2005-02-28 22:55]: I've been thinking for a while that it would be great to have a CPAN wiki for things like: [...] I enjoyed writing the Parallel::* comparison, and I believe it is useful, but honestly, it doesn't belong in the SEE ALSO