Posts

Showing posts from July, 2013

A Look at Finding Out-of-Date Files

On occasion, I need a script that will updates reports but only when the sources have changed. This is typically creating an XML file from log files or creating a static page for a web site. Here is a function to determine if the sources have changed after the last time the report was created.

A Look at Dumping

I used Data::Dumper a lot but it leaves something to be desired. By adding a function to MyUtils.pm , a simpler interface can be achieved.

A Place for the Tests

In a previous article , I created an empty module for some utilities. Now is the time to populate it...and to develop tests for the subroutines.

A Look at Conditional Compiling of Diagnostics

From time to time, I add diagnostic messages to be printed by my code so I can track what the program is doing. I often wondered if there was a way to get Perl to conditionally compile these statements and to get it to do so automatically. Here's how:

A Look At My Utility Library

Although there are many useful utility subroutines in Perl's standard modules, there are some that are missing. I'm going to spend the next few posts describing a few.