Re: Please help me name a module for lossy text compression
On Thu, Dec 20, 2012 at 11:09 AM, Brian Katzung bri...@kappacs.com wrote: On second thought... Text::Filter::NoPunctuation is probably better than ::Unpunctuate. ::StripPunctuation would be even more descriptive. -- Darren Chamberlain d...@sevenroot.org
Re: autoabbrev algorithm from Getopt::Long
On Fri, Feb 13, 2009 at 09:05, Johan Vromans jvrom...@squirrel.nl wrote: I could just extract the code from Getopt::Long but I think it would be a useful thing to have as a CPAN module... No problem with that, but since this is only supposed to assist typing, would't looking at readline completions be a better idea? What's wrong with Text::Abbrev? It's been part of the core for a long time. -- (darren)
Re: Module name - smoke testing automation
On 4/15/07, A. Pagaltzis [EMAIL PROTECTED] wrote: Maybe this deserves to go in some module. Yeah, File::Which. -- (darren)
Sed (was Re: Package::Unicorn)
On 2/18/07, A. Pagaltzis [EMAIL PROTECTED] wrote: (If I had a nickel for every time I've wished Perl had an s///-like function that returned a modified copy instead of modifying the original string in place…) This was the impetus behind my Sed[0] module: my $a = Hello, world; my $b = sed { s/l/0/g } $a; print '$a' = '$b'; Prints: 'Hello, world' = 'He00o, wor0d' *shrug* I needed it at the time (2001-ish, ISTR), and put it on CPAN so that I could find it again. [0]: http://search.cpan.org/dist/Sed/ -- (darren)
Re: Reclaiming lists.{perl,cpan}.org
On 1/26/07, Éric Cholet [EMAIL PROTECTED] wrote: Le 26 janv. 07 à 04:14, Ken Williams a écrit : Well, the list itself is indeed moved, but I can't find anyone to change lists.cpan.org to *tell* people it moved. Elaine maintains that page, but she didn't answer my emails requesting some changes. Hasn't she been a little busy lately? http://www.axis-of-aevil.net/archives/2006/12/slow_cooker.html -- (darren)
Re: Module::Signature issues
* James E Keenan jkeen_via_google at yahoo.com [2006/05/07 20:31]: When I manually downloaded Pod-Readme-0.08 (which still included a SIGNATURE file), I got this error message: [Downloads] 523 $ cd Pod-Readme-0.08 [Pod-Readme-0.08] 524 $ cpansign -v Executing gpg --verify --batch --no-tty --keyserver=hkp://pgp.mit.edu:11371 --keyserver-options=auto-key-retrieve SIGNATURE gpg: Signature made Mon May 1 12:34:59 2006 EDT using RSA key ID BB72D9C5 gpg: requesting key BB72D9C5 from hkp server pgp.mit.edu gpgkeys: key C5A2D18FBB72D9C5 not found on keyserver gpg: no valid OpenPGP data found. gpg: Total number processed: 0 gpg: Can't check signature: public key not found == BAD/TAMPERED signature detected! == Which is a signing problem ... but not the same signing problem I just reported in the case of Module-Build and PathTools. Robert said he's signing his modules with a subkey, and the MIT key sever (IIRC) does not support subkeys. If you use a different keyserver, you'll find the key: $ grep ^keyserver ~/.gnupg/gpg.conf keyserver hkp://subkeys.pgp.net $ gpg --search 0xBB72D9C5 Keys 1-2 of 2 for 0xBB72D9C5 (1) Robert Rothenberg (CPAN) [EMAIL PROTECTED] 1024 bit DSA key 5DB01E18, created 2005-11-09 (2) Robert Rothenberg [EMAIL PROTECTED] 1024 bit DSA key 5DB01E18, created 2005-11-09 The main key ID is 5DB01E18. If you grabbed this key from the MIT keyserver, you could probably verify the signature on Pod::Readme 0.08, assuming the MIT keyserver passed through the subkeys unmolested. (darren) -- If you cannot think of three ways of abusing a tool, you do not understand how to use it. -- Gerald Weinberg pgpYT3zKJ3785.pgp Description: PGP signature
Re: Module Name
David Landgren wrote: Terrence Brannon wrote: I believe you can do everything that this module does using Parse::RecDescent. Maybe so, but Parse::RecDescent is slow, and that in itself is reason enough to avoid using it. You also have to write the grammar, which can take a non-trivial amount of time to design and test. It doesn't need to be slow, at least not after the first run, since you can have it compile the grammar into executable Perl. (darren) signature.asc Description: OpenPGP digital signature
Re: MySQL::Backup?
* Smylers Smylers at stripey.com [2004/10/27 07:13]: Yes, it might've been better if everything in MySQL:: had been called Database::MySQL::whatever. To take the discussion in a different direction for a moment, I'm not sure that I agree that everything in MySQL:: should be in Database::MySQL::. I've got a module in there (MySQL::Config, for reading mysql config files) that I'm not sure belongs in the Database:: namespace (although perhaps it should have been called Config::MySQL). (darren) -- What a strange illusion it is to suppose that beauty is goodness. -- Leo Tolstoy pgpp3z5UmgJjZ.pgp Description: PGP signature
Re: CPAN and command line scripts
* Ruslan U. Zakirov cubic at acronis.com [2004/10/13 22:12]: Hello. http://search.cpan.org/~ruz/RT-Action-NotifyGroup/ has script 'sbin/rt-notify-group-admin.in' that has POD and this POD is what end-user wants more then other docs. What requirements should I satisfy if I want search.cpan.org to show link on script's POD in Documentation section of the dist page? If you specify that sbin/rt-notify-group-admin.in is a script in the EXE_FILES key that gets passed to WriteMakefile (assuming MakeMaker; I don't know the Module::Build equivalent, but there is one) then the indexer will pick it out and add it to the list of docs. See, e.g., http://search.cpan.org/~darren/Mail-ExpandAliases/; the expand-alias script shows up under Documentation, and it's a script. (darren) -- Eternal nothingness is fine if you happen to be dressed for it. -- Woody Allen pgpW4xrV91puM.pgp Description: PGP signature
Re: META.yml keywords (was: Re: Finding prior art Perl modules)
* Randy W. Sims ml-perl at thepierianspring.org [2004/07/14 15:11]: Fergal Daly wrote: Does META.yaml have a place for keyowrds? The spec doesn't currently provide for keywords. Is anyone generating META.yaml files by hand? I thought they were all generated (and regenerated) by Module::Build/MakeMaker? How would that work in the case of keywords? (darren) -- I interpret advertising as damage and route around it. pgpDGGRIRi0Bz.pgp Description: PGP signature
Re: CPAN Rating
* Andy Lester andy at petdance.com [2004/06/16 10:24]: On Wed, Jun 16, 2004 at 04:19:26PM +0100, Orton, Yves ([EMAIL PROTECTED]) wrote: I think part of the problem is that those with a desire to do something about it are not really in the position to do so. What do I have to patch to change search.cpan.org, or who has to agree to changes to CPAN itself? So people can do a prototype, put it on your cpan.yourdomain.com and let people see how swell it is. Let the groundswell of feedback show that it's worth doing. So much concern about permission. No need for permission. I didn't read that as concern about permission. I've also contemplated duplicating or extending some of the functionality of search.cpan.org for internal CPAN mirrors, but I don't want to reimplement *everything*, just add on top of what's already there. So, what do I have to patch to change search.cpan.org? (darren) -- Nothing is ever accomplished by a reasonable man. pgpmM8Jq9KUsk.pgp Description: PGP signature
Re: running tests
* Andy Lester andy at petdance.com [2004/04/02 16:59]: Sure, but even better is to run only the tests that need to be run, which is a key part of prove. You can run prove -Mblib t/mytest.t instead of the entire make test suite. $ make test TEST_FILES=t/mytest.t (darren) -- An idea is not responsible for the people who believe in it. pgp0.pgp Description: PGP signature
Re: Finding the module you want (was: New module Mail::SendEasy)
* Dave Rolsky autarch at urth.org [2004/02/10 09:03]: On Tue, 10 Feb 2004, A. Pagaltzis wrote: * It's better to have comparative articles than module centric reviews; they're also less susceptible to manipulation. I think these are great. The problem is they're a lot of work. I've written two (POOP and date/time) and I know Perrin wrote one for templating systems. They require you to look at _lots_ of modules and also to have a good understanding of all the problems that need to be solved in the area. I agree with you, but, if you are already investigating software to handle a task, wouldn't you look at as many alternatives as possible? I think the trick is to write down your observations after you do one of these exhaustive searches. For example, IIRC, Perrin wrote his templating comparison paper because he spent a lot of time researching the templating systems anyway. (darren) -- An idea is not responsible for the people who believe in it. pgp0.pgp Description: PGP signature
Re: Finding the module you want (was: New module Mail::SendEasy)
* Eric Cholet cholet at logilune.com [2004/02/10 17:27]: Le 10 f?vr. 04, ? 16:16, darren chamberlain a ?crit : I agree with you, but, if you are already investigating software to handle a task, wouldn't you look at as many alternatives as possible? I certainly wouldn't. Rather, I would look at as many alternatives as necessary until I find the module that does what I want with an API that suits me. More often than not it's been the first candidate. But how would you know you found the right one if you don't look at all of them? The first might look good, but the second might be even better. (darren) -- It is impossible to experience one's death objectively and still carry a tune. -- Woody Allen pgp0.pgp Description: PGP signature
Re: optional mix-in classes
* Eric Wilhelm ewilhelm at sbcglobal.net [2004/01/21 10:58]: I'm trying to find a good way for CAD::Drawing::IO to determine which of the CAD::Drawing::IO::* modules are available. It sounds like what you want is to ensure that the IO::* modules are polymorphic, i.e., to ensure that they all adhere to the same interface. Then, like DBI, CAD::Drawing::IO can be setup to load the appropriate implementation module (no groveling in @INC, that's what require is for), instantiate an object, and then call the appropriate methods on that object. Your main module (IO.pm) shouldn't need to have knowledge of the various IO::* modules. Basically, there are save() and load() functions in IO.pm which allow an explicit type argument or the type can be derived from the file extension. At this point, IO.pm should load the right module with require, and then defer to that module's methods to do the right thing for loading, saving, etc. (darren) -- You win again, gravity! pgp0.pgp Description: PGP signature
Re: Version Numbers
* David Wheeler david at kineticode.com [2004/01/08 19:46]: What's the consensus on the version numbers to give to different modules in a CPAN distribution? Lately, all the code I write has had two version numbers: $VERSION and $REVISION. I keep $VERSION up to date with the version number of the distribution, and $REVISION is updated using CVS's magic handling of $Revision$, as Andy showed. (darren) -- One cannot make an omelette without breaking eggs -- but it is amazing how many eggs one can break without making a decent omelette. -- Professor Charles P. Issawi pgp0.pgp Description: PGP signature
Re: DBIx::Recordset : how to make 0.25 the most recent version?
* Terrence Brannon metaperl at urth.org [2004/01/08 05:59]: 1- I uploaded version 0.25 of DBIx::Recordset to supercede to 0.24 release as I am the new maintainer 2 - CPAN.pm showed 0.24 as the new release so I asked Gerald to edit the metadata on PAUSE for DBIx::Recordset, to turn it over to me 3 - even after the metadata change, the most recent version is listed as 0.24 It looks like 03modlist.data.gz has been updated: [ 'DBIx::Recordset', 'b', 'm', 'p', 'O', 'p', 'DB-Abtractionlayer / Access via Arrays/Hashs', 'TBONE', ' 7' ], but 02packages.details.txt.gz still has GRICHTER listed as the owner: $ awk '$1 ~/DBIx::Recordset$/ { print }' 02packages.details.txt DBIx::Recordset0.24 G/GR/GRICHTER/DBIx-Recordset-0.24.tar.gz I guess they both need to be updated. (darren) -- In order to make an apple pie from scratch, you must first create the universe. -- Carl Sagan pgp0.pgp Description: PGP signature
Re: New modules
* Oliver White oliver.white at blibbleblobble.co.uk [2003-11-12 20:22]: 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.html You could petition the namespace maintainers for a GIS top level, especially if you forsee producing a number of modules. Is this the right place to ask? Yes. (darren) -- So far as a man thinks, he is free. pgp0.pgp Description: PGP signature
Re: Tie::Array::Sorted
* Orton, Yves yves.orton at de.mci.com [2003-11-12 17:00]: /me feels silly Ach, dont be. The main reason I feel silly is that I just used Tie::IxHash yesterday. I just never made the connection... (darren) -- There is not enough love in the world to squander it on anything by human beings. pgp0.pgp Description: PGP signature
Re: How to indicate a dependency in my module
* Bruno Negrao qmail at engepel.com.br [2003-11-10 17:10]: 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 already wrote this on the README file. Is there any other place? In my test script, I cause the test to fail if it cannot find a process, 'svscan', running on the machine. Do you think that this can cause all the cpan-testers to fail? I think the best thing to do in your test would be something like: my $have_svscan = 0; if (find_svscan()) { $have_svscan = 1; plan tests = 2; } else { plan tests = 1; } use_ok(Proc::Daemontools); ok(Some svscan related test) if $have_svscan; Where find_svscan looks in the Appropriate Places for svscan, and runs the tests if it can be found. (darren) -- You know the great thing about TV? If something important happens anywhere at all in the world, no matter what time of the day or night, you can always change the channel. -- Jim Ignatowski pgp0.pgp Description: PGP signature
Re: Class::FakeAttributes -- Opinions Wanted
* A. Pagaltzis pagaltzis at gmx.de [2003-11-03 17:38]: * Orton, Yves [EMAIL PROTECTED] [2003-11-03 17:27]: If the 'foo' attribute hasn't been set to anything, then you want an empty list to iterate over. With version C, that's what you get. No. If $self-{foo} is undef you get an error with version C. You're forgetting autovivification. If $self-{foo} is undef it is coerced into a appropriate reftype. $ perl -Mstrict -wle 'my $f = { }; my @a = @{ $f-{foo} }' Can't use an undefined value as an ARRAY reference at -e line 1. (darren) -- How you look depends on where you go. pgp0.pgp Description: PGP signature
Re: RFC Regexp::Capture
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Ken Williams ken at mathforum.org [2003-06-26 18:20]: On Thursday, June 26, 2003, at 02:37 PM, Steve Grazzini wrote: There's also a pragma to make the named groups available as implicitly-declared 'my' variables. use Regexp::Capture; use strict; while () { use capture; That seems a little strange to me - doesn't it require a capture.pm module? Could it be turned on off by an exported Regexp::Capture function? Or maybe use Regexp::Capture qw(lexicals);? This got me curious -- this is interesting: package Regexp::Capture; use strict; sub import { warn Loaded $_[0]!\n } package capture; $INC{'capture.pm'} = $INC{'Regexp/Capture.pm'}; sub import { warn Loaded $_[0]!\n } And this will short-circuit calls to use capture; -- require will see $INC{'capture.pm'} and not look for a file on disk: $ perl -MRegexp::Capture -Mcapture -e1 Loaded Regexp::Capture! Loaded capture! (There is a Regexp/Capture.pm, but no caption.pm.) (darren) - -- Things exist, they're just not there. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE++3UMzsinjrVhZaoRArIOAJ9Ibffahht2zpYeKtwfMZWZXDbTYACfR23k tpXtKeVHUO5LgpgdbmT2Pvs= =c9jF -END PGP SIGNATURE-
Re: [RFC] new module proposal - Template::Plugin::SessionManager
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Enrico Sorcinelli enrico at sorcinelli.it [2003-06-20 10:29]: You can get the module here: http://pisa.pm.org/Template-Plugin-Session-0.01.tar.gz $ wget -nv http://pisa.pm.org/Template-Plugin-Session-0.01.tar.gz http://pisa.pm.org/Template-Plugin-Session-0.01.tar.gz: 10:56:22 ERROR 404: Not Found. (darren) - -- It is impossible to travel faster than the speed of light, and certainly not desirable, as one's hat keeps blowing off. -- Woody Allen -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+8yDSzsinjrVhZaoRAl1cAJ90oG4SAEw63nYiUTVDNT6dL9GPHACfTuiq yA6NGH6rz1735KoICZn1ies= =z0bR -END PGP SIGNATURE-
Re: [RFC] new module proposal - Template::Plugin::SessionManager
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Enrico Sorcinelli enrico at sorcinelli.it [2003-06-20 12:46]: Then I propose these modules: - Template::Plugin::Apache::SessionManager the TT2 wrapper around Apache::SessionManger - Template::Plugin::Session the TT2 simple wrapper around Apache::Session, without Apache name, to avoid historical CPAN namespace error :-) This sounds good to me. (darren) - -- Quiet and courteous is often mistaken for kind and polite. -- Andrew Langmead -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+8zxwzsinjrVhZaoRAnB4AJ0Se8SpIhbNYeJYwrQVqdSGXBKb4gCeJWW9 /10RpKpi1nFPqiM9hcGg+e0= =CfSI -END PGP SIGNATURE-
Re: Class::PObject - another solution for object persistence
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * Sherzod Ruzmetov sherzodr at hotmail.com [2003-06-18 15:46]: I have recently uploaded Class::PObject - class framework for persistent object programming in Perl. it takes a different approach than existing libraries, interface resembling more that of Class::Struct. How is this different from Class::DBI? (darren) - -- Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. -- Sherlock Holmes -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE+8MPPzsinjrVhZaoRAv24AKCUdK7sIqysBxgqT8FIQ/7X8UyGyQCeK7Ou bbThUy+hPmDeQQ0XE03KbcY= =4y3b -END PGP SIGNATURE-
Re: [RFC] new module proposal
* Enrico Sorcinelli enrico at sorcinelli.it [2003-03-27 01:10]: I wrote a simple collection of HTML/XML widget generator (like tabs, boxes, paths) using a master class and the subclasses rendering the particular elements with the same API. I searched on CPAN and apparently I've not found similar modules, Have you heard of the Perl Widget project? It was ambitious, but I think it has stalled. Take a look at http://www.officevision.com/pub/Widget/; you get get the code via CVS from http://sourceforge.net/projects/perl-widget/. There was never a CPAN release, but the ideas are good ones. (darren) -- Microsoft - because God hates us. pgp0.pgp Description: PGP signature
Re: RFC - vCard and vCalendar - parse generate
* Jay Lawrence [EMAIL PROTECTED] [2003-01-03 10:48]: I have the basics of a v* file parser/generator underway. This stemmed from my initial need to parse vCard files (because Apple's Address Book can't print and I needed my xmas card labels! *** ) and ultimately vCalendar files. These modules will also be able to write v(Calendar|Card|\w+) files back out as the need/demand arises. Nice. Out of curiosity, how standalone is the parser, and on what (if anything) is it based? How flexible is it? (I have a passing interest in VCal parsers.) Or, is there a more relevant section of CPAN for data-specific formats? How about putting them under Data::vFile ? *** so I read the RFCs, checked out Net::ICal, exported my Address book into a vCard file wrote a simple parser that let me fire the vCard data into PDFLib to make address label sheets which I then happily printed out and set off my cards - albeit late by then. You should make that code available somewhere, too. (darren) -- A computer lets you make more mistakes faster than any other invention, with the possible exceptions of handguns and Tequila. -- Mitch Ratcliffe
Re: How to run a script as part of make
* Randal L. Schwartz [EMAIL PROTECTED] [2002-04-03 01:08]: Hugh == Hugh S Myers [EMAIL PROTECTED] writes: Hugh To answer the last, first, make test fails unless the script Hugh is run. What I don't know is the hook the execution of the Hugh script into part, at least not in terms of Makefile.PL. So, it needs to be an additional make all part, which precedes a make test. According to ExtUtils::MakeMaker, after applying my secret Ilya/Andy/Andreas/Tim decoder ring: sub MY::postamble { 'EXTRA'; all: running-my-perl-thing running-my-perl-thing: FORCE $(PERL) my/script.pl FORCE: EXTRA } That'll get added to the Makefile, and then a make all will ensure that your Perl thing gets run. This didn't work for me (perl 5.6.1); I get this error: Makefile:652: *** target file `all' has both : and :: entries. Stop. This worked: sub MY::postamble { 'EXTRA' all :: FORCE @$(PERL) -le 'print doing custom stuff FORCE: EXTRA } (darren) -- Sigmund Freud is alleged to have said that in the last analysis the entire field of psychology may reduce to biological electrochemistry.
Re: repost: RFC: CPAN::Grab
Quoting Kurt D. Starsinic [EMAIL PROTECTED] [Mar 07, 2002 10:28]: On Mar 07, Sam Vilain wrote: Which reminds me. Is anyone working on a CPAN debian package archive? I remember Schwern making a joke about it after Ingy's plea for PPM help at YAPC last year. Did anything ever eventuate? At the moment, many packages are being built by the debian project, but it's far from ideal as they tend to be a version or two behind, and only covering a very small proportion of CPAN. IMHO, it's better than what we would do, because Debian packages have extensive regression testing on version interdependencies. I think it would be a bad idea for us to make .dpkg's that don't have that kind of interdependency QC. I'd like to see make target that can make RPMs and debs if the appropriate files are present, i.e, a SPEC file for an RPM (dunno what for a deb). That way, the packaged version would exist, but when (if) it was integrated into debian would still be a matter of when it was deemed Tested Enough. -- Language is not neutral. It is not merely a vehicle which carries ideas. It is itself a shaper of ideas. -- Dale Spender
Re: ANNOUNCE: Nmap::Scanner 0.01
Max Schubert [EMAIL PROTECTED] said something to this effect on 02/08/2002: I just uploaded to my home directory on CPAN my first attempt at a CPAN release ... Nmap::Scanner. Might this belong more appropriately in the Net:: namespace? Net::Nmap, for example? (darren) -- The awful thing about getting it right the first time is that nobody realizes how hard it was.
Re: Making a distribution for a new module.
Paul Hendryx ([EMAIL PROTECTED]) said something to this effect on 04/27/2001: Is there documentation somewhere about how to create a distribution file for a new module? I would like to share my modules with CPAN, but dont know where to start. Any help would be greatly appriciated. Try h2xs. A pure perl module, with a Makefile.PL and all the other goodies, comes from h2xs -A -X -n ModuleName. This will include all the appropriate targets to make the tarball for distribution once the module is finished (make tardist). perldoc h2xs will tell you it is for convert[ing] .h C header files to Perl extensions, but it does a whole lot more as well. (darren) -- Reality is that which, when you stop believing in it, doesn't go away. -- Philip K. Dick
Re: Question
[EMAIL PROTECTED] ([EMAIL PROTECTED]) said something to this effect on 04/18/2001: Hi, I have a question regarding the usage of the modules. I have written my module in: /net/project/gmi/dev/lib The name of it is: GMIPackage I am running my Perl program using that module in: /net/project/gmi/dev/bin I am doing this : #!/opt/perl5/bin/perl -I /net/project/gmi/dev/lib use Sybase::DBlib; use GMIPackage; Try 'use lib': #!/opt/perl5/bin/perl use lib '/net/project/gmi/dev/lib'; use Sybase::DBlib; use GMIPackage; ... and so on, assuming that GMIPackage is in the file '/net/project/gmidev/lib/GMIPackage.pm'. (darren) -- Whatever is done for love is beyond good and evil. -- Friedrich Neitzsche