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 )

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 )

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 )

Discipulus’s step by step tutorial on module creation with tests and git

Posted on December 20, 2018. Filed under: Uncategorized | Tags: , , , , , , , , , , |

Discipulus’s step by step tutorial on module creation with tests and git [This] tutorial is a step by step journey into Perl module development with tests, documentation, and git integration. It seemed to me the very minimal approach in late 2018. See also the GitHub repository and discussion on r/perl (includes a nice description of […]

Read Full Post | Make a Comment ( Comments Off on Discipulus’s step by step tutorial on module creation with tests and git )

perl XS – passing array to C and getting it back

Posted on December 10, 2018. Filed under: Uncategorized | Tags: , , , , |

perl XS – passing array to C and getting it back

Read Full Post | Make a Comment ( Comments Off on perl XS – passing array to C and getting it back )

Camel vs. Gopher [Perl vs Go]

Posted on December 9, 2018. Filed under: Uncategorized | Tags: , , , , , , |

Camel vs. Gopher I’ve been using Perl for several years mostly for small to medium sized programs of sysadmim type (automation, gluing, data transformation, log searching). Recently I started to learn Go. I wanted to write something in both languages and compare. Features a Perl XS solution that demonstrates the use of a hash in […]

Read Full Post | Make a Comment ( Comments Off on Camel vs. Gopher [Perl vs Go] )

curl2lwp – convert Curl command line arguments to LWP / Mechanize Perl code

Posted on November 15, 2018. Filed under: Uncategorized | Tags: , , , , , , , |

curl2lwp – convert Curl command line arguments to LWP / Mechanize Perl code After inspiration by Your Mother and some slight hacking, I’m very proud to announce HTTP::Request::FromCurl, together with its companion online site at https://corion.net/curl2lwp.psgi. The module and included curl2lwp program allow you to easily convert curl command lines to Perl code that uses […]

Read Full Post | Make a Comment ( Comments Off on curl2lwp – convert Curl command line arguments to LWP / Mechanize Perl code )

Generating SVG Badges with Perl

Posted on November 11, 2018. Filed under: Uncategorized | Tags: , , , , , , |

Generating SVG Badges with Perl If you’ve looked at projects on GitHub or other sites, you may have noticed the little rectangular badges (aka shields) saying things like “build passing” with a nice green background (or yellow/red if something is wrong), and if you’ve used Travis CI or Coveralls, you probably know how to get […]

Read Full Post | Make a Comment ( Comments Off on Generating SVG Badges with Perl )

Dist::Zilla for Beginners

Posted on September 23, 2018. Filed under: Uncategorized | Tags: , , , , , , |

Dist::Zilla for Beginners Multi-part tutorial (incomplete at the time of writing). Also discussed at perlmonks

Read Full Post | Make a Comment ( Comments Off on Dist::Zilla for Beginners )

« Previous Entries

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