Module comparison wishlist #1

A while ago I did some comparison on serialization and logging modules, and I hope to do or see comparison on others. Here are some of them:

  • PID files. About a decade ago I wrote Proc::PID_File, including fork() handling, it does the job pretty well but I ended up abandoning it in favor of Proc::PID::File because I don't have time to maintain it and I hated the name. Turns out that there are several other modules pertaining to PID files like Piddy, Pid::File::Flock, IPC::PidStat, even Unix::PID (which is not recommended). The comparison article should discuss what issues surround managing PID files and also mention other means to detect program instances, like locking DATA filehandle (forgot which module does this).

  • INI files. Tried several INI modules in the past, not satisfied with any of them. Used Config::IniFiles in the end, but recently wrote another implementation (unfinished). A comparison article could be helpful.

  • Command-line-argument processing. Have always used Getopt::Long, heavily used App::Options a few years ago, now settling with my own module. Recently there have been some new development efforts like MooseX::GetOpt, Moo::Getopt, and App::Rad.

2 Comments

For INI files and command line programs i can only recommend things written by the current pumpking, rjbs:

https://metacpan.org/release/Config-INI
https://metacpan.org/release/App-Cmd

I gave a talk titled "Modern Getopt for Command Line Processing" at YAPC::NA 2011.

Here are the slides:
http://www.slideshare.net/nickpatch/modern-getopt-for-command-line-processing-at-yapcna-2011

I had been planning on turning the content into an article to post here. Maybe I should finally get around to that!

Leave a comment

About Steven Haryanto

user-pic A programmer (mostly Perl 5 nowadays). My CPAN ID: SHARYANTO. I'm sedusedan on perlmonks. My twitter is stevenharyanto (but I don't tweet much). Follow me on github: sharyanto.