Quantcast
Channel: killianfaughnan.com » perl
Browsing latest articles
Browse All 9 View Live

Perl Array Basics

Initialising or clearing an array To create a new array it is as simple as declaring it as shown below. This method can also be used to clear an existing array, though you will have to drop the my. my...

View Article



Perl Loop Basics

For loop The below will print “Hello!” 10 times: for ($i = 0; $i < 10 ; $i++){ print "Hello!n"; } Output: Hello! Foreach loop For iterating through an array it can be handy to use a foreach...

View Article

Reading From A File In Perl

Opening a file eading from a file in Perl is pretty simple. After all, the language is pretty much built around dealing with text. The first step is to open the file, in which case you just need to use...

View Article

Printing In Perl

Printing A String Printing a string in Perl couldn’t be easier, you simply use the print function. If you want to print a line in Perl you simple need to write the following: print "Hello World!";...

View Article

CsvSQL

About CsvSQL Csvsql is a project I started for my BSc’s final year software project. It is written in Perl and can be used to access information in csv files in the same way you would access a table in...

View Article


CsvSQL Man Page

NAME Csvsql – use SQL queries to access information in CSV files DESCRIPTION csvsql enables you to access a CSV file as if it were a table in a database. This means you can use SQL queries, with each...

View Article

Renaming Files As Lowercase Using Perl

This is just a handy script I use for renaming my music collection. It got to be too much trouble having the first letter of each word capitalised, getting new music with the names all in caps, or all...

View Article

Renaming Files Using Perl

I finally got around to writing a script to rename all my music files to the same convention. That being either <track>-<song>.mp3 or <song>.mp3 with no spaces (I prefer underscores...

View Article


Writing Better Perl

I’ve recently started using a few tools to help clean up my Perl.  The first of these tools I use for standardised formatting of my Perl scripts.  The second I use to analyse my Perl source code....

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images