Patching Perl: loading modules that return false
Posted on July 24, 2018. Filed under: Uncategorized | Tags: author:david.farrell, perl, r/perl, reddit, xs |
Patching Perl: loading modules that return false If you’ve been programming Perl for a while, you’ve probably run into this exception: Foo.pm did not return a true value. This is a peculiar quirk of the require function: modules must return a true value else Perl interprets it as a failure via r/perl [reddit]
Read Full Post | Make a Comment ( Comments Off on Patching Perl: loading modules that return false )XS::Tutorial
Posted on January 12, 2018. Filed under: Uncategorized | Tags: author:david.farrell, cpan, cpan:xs-tutorial, perl, tutorial, xs |
XS::Tutorial A couple of up-to-date tutorials for XS in Perl and C. Also includes a collection of references to other XS material.
Read Full Post | Make a Comment ( Comments Off on XS::Tutorial )Git bisect and Perl
Posted on August 9, 2017. Filed under: Uncategorized | Tags: author:david.farrell, git, git-bisect, perl, r/perl, reddit |
Git bisect and Perl git bisect run treats certain exit values specially: 125 means the code cannot be tested, and 128 or higher will abort the bisect process. If Perl throws an exception it exits with 255 (instead of 0 for a pass and 1 for a test fail), aborting the bisect altogether. To fix […]
Read Full Post | Make a Comment ( Comments Off on Git bisect and Perl )Getting started with XS
Posted on May 4, 2017. Filed under: Uncategorized | Tags: author:david.farrell, c, cpan:xs-tutorial, meta, perl, r/perl, reddit, xs |
Part 1: Getting started with XS Part 2: Writing your own XS functions Part 3: XS utility routines that are good to know eXtendable Subroutines (XS) are subroutines written in C that are callable from Perl code. There are two common reasons you’d want to use XS: there is a C library you’d like to […]
Read Full Post | Make a Comment ( Comments Off on Getting started with XS )How to build a base module
Posted on November 30, 2016. Filed under: Uncategorized | Tags: author:david.farrell, base, cpan:import-base, cpan:import-into, exporter, import, perl |
How to build a base module When working on large Perl projects, a base module is a nice way to setup a standard set of imported routines for the other modules in the project. With a base module you can configure a logger, turn on pragmas and import any other useful routines. See also Import::Into
Read Full Post | Make a Comment ( Comments Off on How to build a base module )Hello berrybrew, the Strawberry Perl version manager
Posted on May 19, 2016. Filed under: Uncategorized | Tags: author:david.farrell, berrybrew, cpan, cpan:app-perlbrew, github:plenv, perl, strawberry-perl |
Hello berrybrew, the Strawberry Perl version manager When I’m on Windows I use Strawberry Perl, so I wrote berrybrew to help manage Perl on Windows. It’s similar to Perlbrew and plenv; it will download, install and manage multiple versions of Strawberry Perl for you, no administrator privileges required.
Read Full Post | Make a Comment ( Comments Off on Hello berrybrew, the Strawberry Perl version manager )