Perl module creation with tests and git

Posted on July 24, 2020. Filed under: Uncategorized | Tags: , , , , , , , , , , , , |

Perl module creation with tests and git This tutorial, on the other hand, tries to show the beginner one possible path in module creation. As always in perl there are many ways to get the job done and mine is far from the most optimal one, but as I have encountered many difficulties in choosing […]

Read Full Post | Make a Comment ( Comments Off on Perl module creation with tests and git )

Short survey of [perl] modules for combinations and permutations

Posted on June 1, 2020. Filed under: Uncategorized | Tags: , , , , , |

Short survey of modules for combinations and permutations This is a short look at some modules for generating combinations and permutations. There are likely more modules that aren’t listed. RosettaCode has examples of writing the combinations and permutations functions by hand. TL;DR: Just use Algorithm::Combinatorics (full-featured, xs). Article dates back to 2015, but it’s still […]

Read Full Post | Make a Comment ( Comments Off on Short survey of [perl] modules for combinations and permutations )

Exporting use strict/warnings into main

Posted on May 16, 2020. Filed under: Uncategorized | Tags: , , , |

Exporting use strict/warnings into main When a user adds this package with use, I’d like it to automatically inject/export the use strict; use warnings pragmas so they don’t have to add it to their script. I’ve seen other packages do this but I can’t figure out how.

Read Full Post | Make a Comment ( Comments Off on Exporting use strict/warnings into main )

Docker, Perl and GitHub

Posted on January 25, 2020. Filed under: Uncategorized | Tags: , , |

Docker, Perl and GitHub When maintaining a Perl package used by multiple users/companies (or not), you absolutely want to know how your code behaves on different versions of Perl. Even if you could have multiple versions of Perl installed on your development environment, most of the time, the development is only performed using a single […]

Read Full Post | Make a Comment ( Comments Off on Docker, Perl and GitHub )

git-push target for Makefile (via ExtUtils::MakeMaker)

Posted on May 25, 2019. Filed under: Uncategorized | Tags: , , , , , |

git-push target for Makefile (via ExtUtils::MakeMaker) I was trying to automate more (=keep as far away as possible) the process of pushing to github through a Makefile and I came up with the following simplistic approach.

Read Full Post | Make a Comment ( Comments Off on git-push target for Makefile (via ExtUtils::MakeMaker) )

Benchmarks target in Makefile

Posted on May 25, 2019. Filed under: Uncategorized | Tags: , , , , , , |

Benchmarks target in Makefile I would like to add a target for running benchmarks on my code to the Makefile produced by ExtUtils::MakeMaker I already have a benhmarks.pl file which does everything and prints a report. I would like to have it executed whenever I do: make benchmarks . And only then because it is […]

Read Full Post | Make a Comment ( Comments Off on Benchmarks target in Makefile )

Managing Your Travis CI Config Files with App::CISetup

Posted on May 24, 2019. Filed under: Uncategorized | Tags: , , , , , , , |

Managing Your Travis CI Config Files with App::CISetup If you write software, you (hopefully) write tests. If you write tests, it’s easy to forget to run them. Using Continuous Integration (CI) for your software is one way around this. Many of us use Travis CI for CI. In this post we’ll go over ways to […]

Read Full Post | Make a Comment ( Comments Off on Managing Your Travis CI Config Files with App::CISetup )

Dist::Zilla::Starter – Guide to getting started with Dist::Zilla

Posted on May 18, 2019. Filed under: Uncategorized | Tags: , , , , , |

Dist::Zilla::Starter – Guide to getting started with Dist::Zilla I’ve been trying to put together this guide for a while, as a modern introduction to the intentions and inner workings of Dist::Zilla, there isn’t much out there that really tells you how it works and why. Dist::Zilla::Starter @ MetaCPAN

Read Full Post | Make a Comment ( Comments Off on Dist::Zilla::Starter – Guide to getting started with Dist::Zilla )

The River of CPAN

Posted on April 15, 2019. Filed under: Uncategorized | Tags: , , , , |

The River of CPAN This blog post describes a model that we found useful for talking about CPAN dependencies and reverse dependencies at the QA Hackathon. At the head of the river is Perl itself with the core modules. The river flows into the sea, which contains all distributions that aren’t used by any other […]

Read Full Post | Make a Comment ( Comments Off on The River of CPAN )

Array comparison in Perl XS

Posted on March 13, 2019. Filed under: Uncategorized | Tags: , , , , , , |

Array comparison in Perl XS Comparing two 1-dimensional arrays for equality in XS. Also available on github

Read Full Post | Make a Comment ( Comments Off on Array comparison in Perl XS )

« Previous Entries

Liked it here?
Why not try sites on the blogroll...