Bookmark
PSGI/Plack - Perl Superglue for Web Frameworks and Web Servers
plackperl.org/, posted 2012 by peter in development free perl
PSGI is an interface between Perl web applications and web servers, and Plack is a Perl module and toolkit that contains PSGI middleware, helpers and adapters to web servers.
PSGI and Plack are inspired by Python's WSGI and Ruby's Rack.
Bookmark
Minimal requirement to build a sane CPAN package
szabgab.com/minimal-requirement-to-build-a-sane-cpan-package.html, posted 2012 by peter in development howto perl toread
I started to write an article explaining how to package a Perl module but it got too long and detailed. Let's start with a simple case and build the smallest possible but still sane package. Later we can go in more details and see alternative ways.
Bookmark
CPAN modules for parsing User-Agent strings | NeilB [blogs.perl.org]
blogs.perl.org/users/neilb/2011/10/cpan-modules-for-parsing-user-agent-strings.html, posted 2011 by peter in development list perl software webdesign
This article is a comparison of seven CPAN modules for extracting information out of the User-Agent string passed to web sites by browsers, spiders, and other software agents. These are useful when processing log files, to produce analytics, and other purposes. You may even use it to change your application's behaviour, but that sort of thing is frowned upon.
Bookmark
Using DBI Effectively: bind_columns() | bluefeet
blog.bluefeet.net/2011/08/using-dbi-effectively-bind_columns/, posted 2011 by peter in development howto perl storage
There are two important reasons why bind_columns() is so awesome:
First, it greatly reduces the complexity of the code within the while() loop since you do not have to lookup in to an array ($sth->fetchrow_array()), de-reference an array ($sth->fetchrow_array()), or de-reference a hash-ref ($sth->fetchrow_hashref()). Instead the values themselves are available via appropriately named scalars.
Secondly, when using bind_columns() DBI is re-using the same scalars every time a fetch() is done which is much faster than creating an array or hash every fetch and typically causes the values to be copied one less time than normal. Benchmark it yourself – bind_columns() can make a huge difference when processing large sets of data.
Bookmark
Perl Worst Practices - Blog - April 2011 - veekun: fuzzy notepad
me.veekun.com/blog/2011/04/13/perl-worst-practices/, posted 2011 by peter in development howto list opinion perl
Don't do these because "it's quicker" (it's not). Don't do these because "nobody else will use this code" (your future self will). Don't do these because "it's a one-time script" (almost all production software started as one-time scripts). Just do not do them. At all. Ever. Unless you are mst there is no reason to do any of this. The language has moved on. There is a better way.
Bookmark
Simplify Perl Module Management With CPAN Minus — ServerWatch.com
www.serverwatch.com/tutorials/article.php/3931796/Simplify-Perl-Module-Management-With-CPAN-Minus.htm, posted 2011 by peter in development free management perl software
What's CPAN Minus (or "cpanm" if you prefer the caps-challenged version) for? Installing CPAN modules, period. It can get, unpack, build, and install Perl modules from CPAN -- but it can't do any of the other stuff the CPAN shell can do. It's meant to require zero configuration, and it runs as a standalone application.
Bookmark
Mail::DKIM::Signer - search.cpan.org
search.cpan.org/~jaslong/Mail-DKIM-0.39/lib/Mail/DKIM/Signer.pm, posted 2011 by peter in development email free messaging perl software
This class is the part of Mail::DKIM responsible for generating signatures for a given message. You create an object of this class, specifying the parameters of the signature you wish to create, or specifying a callback function so that the signature parameters can be determined later. Next, you feed it the entire message using "PRINT()", completing with "CLOSE()". Finally, use the "signatures()" method to access the generated signatures.
Bookmark
Smart Matching for Human Names - The Perl Journal, Fall 2000
www.foo.be/docs/tpj/issues/vol5_3/tpj0503-0009.html, posted 2010 by peter in development language nlp perl search toread
The main module, Lingua::EN::MatchNames, exports one function by default: name_eq(). You can either feed it four parameters:
name_eq( $firstname0, $lastname0, $firstname1, $lastname1 ) or two (thanks to Lingua::EN::NameParse, which breaks full names into their constituent components):
name_eq( $name0, $name1 ) and it will return a certainty score between 0 and 100, or undef if the names cannot be matched via any method known to the module.
Bookmark
Turning CPAN modules in to deb with dh perl make :: idimmu . net
www.idimmu.net/2008/02/01/Turning-CPAN-modules-in-to-deb-with-dh-perl-make, posted 2009 by peter in conversion development howto linux perl
Some of our PERL tools require some CPAN modules that are not part of the standard Ubuntu distribution. It's obviously possible to install the module using CPAN but I like using deb packages where possible as then you only have one repository to manage. Fortunately with dh-make-perl it is possible to quickly turn any CPAN module in to a debian package!
Bookmark
ack -- better than grep, a power search tool for programmers
betterthangrep.com/, posted 2009 by peter in development free linux mac perl search shell software windows
ack is a tool like grep, aimed at programmers with large trees of heterogeneous source code.
ack is written purely in Perl, and takes advantage of the power of Perl's regular expressions.
|< First < Previous 11–20 (28) Next > Last >|