Geo::Coder::Geocoder::US is a Perl module that interfaces to the Geocoding API of geocoder.us. Unfortunately that disappeared late 2015. Since this module is therefore useless, I am deleting it from CPAN.
Perl::Critic::Policy::Variables::ProhibitUnusedVarsStricter (whew!) is a Perl Critic policy that attempts to be more stringent about finding unused variables than the core policy of similar name. One of the things that has to be done to make this happen is to figure out which variables are interpolated into double-quotish strings.
The original version of this module had its own string-analysis logic, as do other Perl-Critic policies …
I found myself one day trying to come up with a regexp that matched
m/ \G \s* (?: (?<oct> 0b+ | 0[0-7]+ | 0x[[:xdigit:]]+ ) | (?<float> [+-]?(?=\.?\d)\d*\.?\d*(?:e[+-]?\d+)? ) ) (?! \w ) /smxigc
<oct> capture represents things that
need to be run through the
oct built-in, and the
<float> capture comes from perlfaq4.
The problem here was t…
Perl's copious documentation is one of the things that keeps me using it. But a pretty good idea where to start looking, can be like finding the proverbial needle in a haystack.
Fortunately, we have Joshua ben Jore's perldoc-search, which will find anything you can specify as a regular expression, and that Perl itself can find.
Unfortunately, this can sometimes be a bit too much. I generally have several Perl kits unpacked in my home direc…
This post is a follow-up to MacPorts openssl versus Perl. That post told of a problem with a recent MacPorts openssl upgrade, and gave a workaround.
The right thing to do, however, is to use the current openssl. That involves finding all Perl modules that use openssl and re-installing them.
To do this, I wrote a small Perl script that traversed
@INC looking for binary files. It spawned the
file command to determine whet…
Search this blog
- Retraction of Geo::Coder::Geocoder::US
- Refactor of Perl Critic policy ProhibitUnusedVarsStricter
- Stupid Regexp Trick: Fail on match
- Stupid perldoc-search trick
- Son of MacPorts openssl versus Perl
- MacPorts openssl versus Perl
- Stupid state trick
- The Case of the Preferred Parent
- Announcing Perl::Critic::Policy::ControlStructures::ProhibitForeachHandle