Perl Programming

Perl Programming – Bubble Sort a String

After getting familiar with the syntax of a language, performing little challenges – such as sorting a list of items – is often the next thing one might try. So, although I’d previously lots of Perl experience, having focused on other things for a while I was decidedly rusty, and decided to reactivate my Perl braincells, and write a little program to bubble sort a string in Perl. 

Continue reading »
Microsoft WSL

WSL2 – Apache with Named Local Hosts

WSL2 (Windows Subsystem for Linux, version 2) is a great piece of software for all kinds of useful reasons. For one it means you don’t need to have a separate Linux machine to develop on, and it also avoids you needing to install a VM using Oracle VM VirtualBox or Hyper-V, for example. Plus, it’s easy to set up and for most things is probably as close as you’ll need to working on a Linux machine, while still using your trusty Windows machine.

Continue reading »
Perl Programming

Perl – One-liner to Get Local IP Address, No Modules

The code in this post will enable you to identify your system’s local IP address and put it into a variable for your further use. I specifically did this to identify the IP address on a Ubuntu WSL2 instance (i.e. Windows Subsystem for Linux), but it should work on any machine. As anyone familiar with WSL2 will know, unlike prior versions of WSL, WSL2 doesn’t keep a static IP address, which can be a pain, and provides a new one on each startup. So, being able to identify the newly allocated IP at startup can be quite handy.

Continue reading »
JD Williams

JD Williams Catalogue Store – Latest Deals

With the price of almost everything seeming to skyrocket with inflation, it’s always welcome to find a good deal, and now we have some excellent new offers for you at the JD Williams catalogue store. With up to 60% off some items, and deals across the board – from fashion and home goods to technology, footwear, and garden products – there are lots of ways to save some money at JD Williams right now.

Continue reading »