Re: New modules

2003-11-12 Thread James E Keenan
On Wed, 12 Nov 2003 20:22:01 +, Oliver White wrote: > Hiya. I'm about to start work on some GIS programming in Perl, and > will likely end up with a few modules that might usefully go onto > CPAN. > >> From what I've read on the FAQs though, it seems like a bit of a >> minefield to >> > choose

Re: Tie::Array::Sorted

2003-11-12 Thread Tim Bunce
On Wed, Nov 12, 2003 at 09:42:05PM +, Nicholas Clark wrote: > On Wed, Nov 12, 2003 at 10:16:51PM +0100, Paul Johnson wrote: > > On Wed, Nov 12, 2003 at 01:32:13PM +, Simon Cozens wrote: > > > > > Hi. I'm about to write a module which presents an array in sorted order; > > > $a[0] will alwa

RE: Tie::Array::Sorted

2003-11-12 Thread Orton, Yves
Title: RE: Tie::Array::Sorted > > s/Tie::// ? > > > > Do I need to be concerned with how the module is implemented? > > Presumably the documentation will tell me how to use it. > > > > Yes, this probably applies to the rest of the Tie:: namespace too. > > Oh, I was going to say this. > > T

Re: Tie::Array::Sorted

2003-11-12 Thread Nicholas Clark
On Wed, Nov 12, 2003 at 10:16:51PM +0100, Paul Johnson wrote: > On Wed, Nov 12, 2003 at 01:32:13PM +, Simon Cozens wrote: > > > Hi. I'm about to write a module which presents an array in sorted order; > > $a[0] will always be the "least" element by some comparator. Miraculously, > > there does

Re: Tie::Array::Sorted

2003-11-12 Thread Paul Johnson
On Wed, Nov 12, 2003 at 01:32:13PM +, Simon Cozens wrote: > Hi. I'm about to write a module which presents an array in sorted order; > $a[0] will always be the "least" element by some comparator. Miraculously, > there doesn't seem to be such a beast on CPAN already. > > Is Tie::Array::Sorted

Re: New modules

2003-11-12 Thread Ed Summers
On Wed, Nov 12, 2003 at 08:22:01PM +, Oliver White wrote: > > As a first step, I was considering adding a module to read GSHHS data [a > binary format for coastline data] and give it a name something like > Geo::GSHHS. More info at the site: > http://www.soest.hawaii.edu/wessel/gshhs/gshhs.

New modules

2003-11-12 Thread Oliver White
Hiya. I'm about to start work on some GIS programming in Perl, and will likely end up with a few modules that might usefully go onto CPAN. From what I've read on the FAQs though, it seems like a bit of a minefield to choose a name that someone else doesn't want, and to find out if anyone's alre

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Nicholas Clark
On Wed, Nov 12, 2003 at 04:11:45PM +, Sam Vilain wrote: > On Tue, 11 Nov 2003 02:29, Michael G Schwern wrote; > > > YAML was chosen because its human readable and writable, its data > ^ ^ > So long as you're a FREAK who likes INDENTING

Re: How to indicate a dependency in my module

2003-11-12 Thread Randy W. Sims
Bruno Negrao wrote: Hi Aristotle, (in portuguese your name is written "AristÃteles":) I can't believe noone understood what you were talking about and went off to lala-land. :-/ :-) hehehehe "lala-land", that was fun! Yes, they simply ignored what I asked them. Even if I use the technique you su

Re: How to indicate a dependency in my module

2003-11-12 Thread Bruno Negrao
Hi Aristotle, (in portuguese your name is written "AristÃteles":) > I can't believe noone understood what you were talking about and > went off to lala-land. :-/ :-) hehehehe "lala-land", that was fun! Yes, they simply ignored what I asked them. Even if I use the technique you suggested, when an

Re: Tie::Array::Sorted

2003-11-12 Thread Randy W. Sims
Simon Cozens wrote: Randy W. Sims: Sounds like a set/multiset/bag structure. I thought it sounded more like a sorted array, but I'm prepared to be persuaded otherwise. (Primarily because I've already released the module to CPAN. ;) Which of

Re: Tie::Array::Sorted

2003-11-12 Thread A. Pagaltzis
* Bruno Negrao <[EMAIL PROTECTED]> [2003-11-12 18:47]: > Also, you could try to guess (via regexps) if the data to be > sorted is numeric or alphabetical and use the appropriate > subrouting to order it. Bleah. This kind of second-guessing easily leads to surprises. Being explicit is good. -- Re

Re: Tie::Array::Sorted

2003-11-12 Thread Bruno Negrao
RE: Tie::Array::SortedHi Simon and others, I agree that Tie::Array::Sorted is a good name. >But it is a shocking ommission if there isnt at least one other way. I definately vote for > Tie::Array::Sorted, but It may be worth having a look at Tie::Hash::Sorted and make > them compatible on some le

Re: How to indicate a dependency in my module

2003-11-12 Thread A. Pagaltzis
* Bruno Negrao <[EMAIL PROTECTED]> [2003-11-10 20:11]: > IÅm finishing to write a module, Proc::Daemontools, and it > requires that the daemontools package be installed on a machine > for it to work. Where must I indicate that this module have a > dependency? I can't believe noone understood what

Re: Tie::Array::Sorted

2003-11-12 Thread Randy W. Sims
Simon Cozens wrote: Hi. I'm about to write a module which presents an array in sorted order; $a[0] will always be the "least" element by some comparator. Miraculously, there doesn't seem to be such a beast on CPAN already. Is Tie::Array::Sorted a reasonable name for it, or would another one be more

RE: Tie::Array::Sorted

2003-11-12 Thread Orton, Yves
Title: RE: Tie::Array::Sorted Ach, dont be. IMO there isnt much call to use these modules in real life. They impose an overall performance penalty that outwieghs the convenience factor. But it is nice to know (in that warm fuzzy way) that they are in toolbox if you really need em. BTW

Re: Tie::Array::Sorted

2003-11-12 Thread darren chamberlain
* Orton, Yves [2003-11-12 16:31]: > Tie::Hash::Sorted > Tie::IxHash > Tie::Hash::Array > Tie::SortHash Er, thanks. /me feels silly (darren) -- I interpret advertising as damage and route around it. pgp0.pgp Description: PGP signature

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Christopher Hicks
On Wed, 12 Nov 2003, Sam Vilain wrote: > On Tue, 11 Nov 2003 02:29, Michael G Schwern wrote; > > > YAML was chosen because its human readable and writable, its data > ^ ^ > So long as you're a FREAK who likes INDENTING and WHITESPACE to >

RE: Tie::Array::Sorted

2003-11-12 Thread Orton, Yves
Title: RE: Tie::Array::Sorted > * Simon Cozens [2003-11-12 13:32]: > > Is Tie::Array::Sorted a reasonable name for it, or would another one > > be more obvious? DB_File has a way to do this iirc. But it is a shocking ommission if there isnt at least one other way. I definately vote for Ti

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Sam Vilain
On Tue, 11 Nov 2003 02:29, Michael G Schwern wrote; > YAML was chosen because its human readable and writable, its data ^ ^ So long as you're a FREAK who likes INDENTING and WHITESPACE to signify STRUCTURE. Is it any surprise that YAML is

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Phil . Moore
> "Chris" == Christopher Hicks <[EMAIL PROTECTED]> writes: >> So, if I understand this correctly, you're worried about the build >> process eval'ing the contents of a file I sent you. Hmm. >> >> OK, why is that anymore of a concern for eval'ing the perl module I >> also distributed, too? Is

Re: Tie::Array::Sorted

2003-11-12 Thread darren chamberlain
* Simon Cozens [2003-11-12 13:32]: > Is Tie::Array::Sorted a reasonable name for it, or would another one > be more obvious? This seems a reasonable name. Is there also a hash version in the works? I write: for my $key (sort keys %h) { ... often enough that I would use it. (darren)

Tie::Array::Sorted

2003-11-12 Thread Simon Cozens
Hi. I'm about to write a module which presents an array in sorted order; $a[0] will always be the "least" element by some comparator. Miraculously, there doesn't seem to be such a beast on CPAN already. Is Tie::Array::Sorted a reasonable name for it, or would another one be more obvious? -- Rul

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Christopher Hicks
On Wed, 12 Nov 2003 [EMAIL PROTECTED] wrote: > So, if I understand this correctly, you're worried about the build > process eval'ing the contents of a file I sent you. Hmm. > > OK, why is that anymore of a concern for eval'ing the perl module I > also distributed, too? Isn't that just as big a s

Re: [Module::Build] Re: How to indicate a dependency in my module

2003-11-12 Thread Phil . Moore
OK, maybe I'm missing a LOT of context here, 'cause I haven't been agressively keeping up with this mailing list, but the security hole argument seems a bit odd. These META.yml files we're refering to -- these are meta data for managing the build process, files that will be distributed along with

Re: Yet another naming question

2003-11-12 Thread Smylers
Mark Stosberg writes: > On Mon, Nov 10, 2003 at 03:06:30PM -0500, darren chamberlain wrote: > > > Though the idea and syntax originate with mutt (as far as I know, at > > least), the general idea is not mutt-specific, or even > > mail-specific. The idea occured to me because I was writing a > >