Programming


Create Graph Paper or Checkerboard in Perl

Create Graph Paper or Checkerboard in Perl

In the quest to find activities to do with our kids, we decided to make some games. Instead of drawing the boards by hand (and because the CNC router wanted SVG files), we made a program to make the boards. Here is the Graph Paper or Checker Board of any size ...

Pretwa Game Board Using Perl to Create SVG

Pretwa Game Board Using Perl to Create SVG

Pretwa is similar to checkers in that you jump and capture pieces. That is where the similarity ends. This article shows how I created a Pretwa board in SVG using Perl, and explains the rules of the game. What is Pretwa? Pretwa is a game from the state of Bihar, India for two ...

SVG Perl Script to Make 9 Men's Morris Game

SVG Perl Script to Make 9 Men’s Morris Game

9 Men’s Morris is a great simple strategy game that has been around for thousands of years. You can play it by scratching some lines in the dirt (or paper) and then using 9 tokens each. Here is a Perl script that generates a game board for you in SVG format. 9 ...

Compare List of IP Addresses With Perl and Tk

Compare List of IP Addresses With Perl and Tk

If you happen to have a list of IPs and you want to compare to another list IPs, you can use Perl and Tk to automate the process. When preparing networking reports it is common to have a list of IP addresses and you might need to compare to another list as you research. ...

Join Similar CSV Using Perl

Join Similar CSV Using Perl

When exporting logs in Check Point using the smart log feature, sometimes the column order is randomized. If you have multiple files and need to join them, especially if they have different column orders, you don’t want to do this by hand. 1 Million Record Limit You have a limit of 1 Million records when ...

DNS Lookups with Perl Net::DNS::Resolver

DNS Lookups with Perl Net::DNS::Resolver

If you need to automate thousands of DNS lookups using Perl, you can try using the Net::DNS::Resolver and this script.

Fix Encoding Issues With Perl

Fix Encoding Issues With Perl

Sometimes when working with text files (like log exports), you might encounter weird encoding issues. If you need to fix encoding issues with Perl, you can use a script like this: This opens all of the files as raw encoding, then converts to ascii. You can check what type of file linux ...

Perl Script to Splice CSV Files

Perl Script to Splice CSV Files

Need to use a Perl script to splice out a section of a large CSV file? This should do the trick!

Use Perl to Match IP to Subnets

Use Perl to Match IP to Subnets

Use Perl to Match Multiple IP Addresses to Multiple Known Networks.