Automated testing on Windows with AppVeyor

Posted on October 23, 2017. Filed under: Uncategorized | Tags: , , , , , |

Automated testing on Windows with AppVeyor AppVeyor is a continuous integration service similar to Travis CI, just on Windows. If you have a Perl module on GitHub, it’s not that hard to have it run tests automatically on Windows; it’s just not well documented.

Read Full Post | Make a Comment ( Comments Off on Automated testing on Windows with AppVeyor )

Fixing Legacy Perl Functions With Decorators

Posted on October 21, 2017. Filed under: Uncategorized | Tags: , , , , , , |

Fixing Legacy Perl Functions With Decorators Function decorators give us a way to modify a function’s behaviour without changing its source. This is useful in changing the behaviour of complex or legacy functions that you don’t want to touch. Although perl does not have a built-in syntax for creating or using decorators, typeglob manipulations are […]

Read Full Post | Make a Comment ( Comments Off on Fixing Legacy Perl Functions With Decorators )

Docker based Continuous Integration for perl projects

Posted on October 12, 2017. Filed under: Uncategorized | Tags: , , , , , |

Docker based Continuous Integration for perl projects Continuous Integration for Perl using Shippable and Docker from a Github or BitBucket repo.

Read Full Post | Make a Comment ( Comments Off on Docker based Continuous Integration for perl projects )

Code Reuse

Posted on September 1, 2017. Filed under: Uncategorized | Tags: , |

Code Reuse Hi, I’m looking to do something like this: Package GlobalDefined; use strict; use warnings; our $PROJECT_GLOBAL_VAR1; … # Tools use Data::Dumper; … 1; Now, I’d like to add some kind of use/require so that the definitions that I include in global defines are taken in other packages/scripts. That means not only the global […]

Read Full Post | Make a Comment ( Comments Off on Code Reuse )

Git bisect and Perl

Posted on August 9, 2017. Filed under: Uncategorized | Tags: , , , , |

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 )

Re: Quieting Test::More

Posted on July 4, 2017. Filed under: Uncategorized | Tags: , , , , |

Re: Quieting Test::More # make Test::More only display fails # (also works with Test::Most) use File::Spec; Test::More->builder->output(File::Spec->devnull);

Read Full Post | Make a Comment ( Comments Off on Re: Quieting Test::More )

Bulk88 – “Writing XS in Plain C”

Posted on June 23, 2017. Filed under: Uncategorized | Tags: , , , , , , , |

Writing XS in Plain C Even if you learned C in a classroom at some point, Perl’s “XS” API for writing perl subs in something purported to be C but is really a cat on a tablet with caps lock on. In this talk I will show how difficult it is to write subs in […]

Read Full Post | Make a Comment ( Comments Off on Bulk88 – “Writing XS in Plain C” )

Graham Knop – “Continuous Integration for CPAN”

Posted on June 23, 2017. Filed under: Uncategorized | Tags: , , , , , , , , , |

Continuous Integration for CPAN – youtube Continuous integration helps you catch issues in your modules across a more diverse set of configurations than is easy to check manually. Travis-CI and AppVeyor are free CI solutions for open source projects that will allow automatic testing on Linux, macOS, and Windows. Extra tools exist for easy testing […]

Read Full Post | Make a Comment ( Comments Off on Graham Knop – “Continuous Integration for CPAN” )

Specifying dependencies for your CPAN distribution

Posted on May 10, 2017. Filed under: Uncategorized | Tags: , , , , , , , , , , |

Specifying dependencies for your CPAN distribution […] I’m going to show you how to specify dependencies for your CPAN distributions: the other Perl and CPAN modules that your distribution relies on. Posts in this series: An introduction to CPAN distribution metadata Dependency phases in CPAN distribution metadata Specifying the type of your CPAN dependencies Specifying […]

Read Full Post | Make a Comment ( Comments Off on Specifying dependencies for your CPAN distribution )

XS Mechanics

Posted on May 4, 2017. Filed under: Uncategorized | Tags: , , , |

XS Mechanics is an article in five parts about XS. It explains what it is, why it is, how it works, and how to use it. It includes a complete, working example of an XS module, and a stub module that you can use as a starting point for your own code. It is an […]

Read Full Post | Make a Comment ( Comments Off on XS Mechanics )

« Previous Entries

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