Bog Roll ::

It's Not Magic, It's Work!

14 Feb 2004

National Train Timetable

The UK's antiquated rail system has a terribly designed on-line web site that allows you to plan your rail journey. It's an access nightmare, awkward to use, and frankly an embarrassment to the Internet.

While hunting round the WebStandards site I spotted a link to a nice version of the site. It's not a cleaned up demo, but a fully working interface, using the same backed data. If you want to find out about train times in the UK I heartily recommend this site, instead of the official one!

www.dracos.co.uk/railway/timetable/

CVS

In the past I've just hacked on Perl code while it sits on the file system. For a long time I've known I should use some form of revision control system, I've just never got round to setting one up, and understanding how it works.

For the Perl-RSS project on SourceForge brian d foy did all the hard work setting things up, I simply pointed WinCVS at the server and magic happened.

Today I imported my modules into my CVS server, and started to read the man pages. Doesn't look to scary, once you read how it works. Anyhow I shall see how it goes....


Evil Windows path symbol

A number of years ago I wrote a very basic Perl module to parse configuration files. It's something everyone does, and CPAN is full of them. I never released it to CPAN, as I saw little point.

As part of a project at work I decided to dust of this old module and update it, and this time it did go up to CPAN. At the same time I realised that I could patch one of the existing modules to give it extra functionality, similar to my requirements. So I release my module to CPAN, and sent a patch to the maintainer of the other module.

Time passes... It turns out that the patch, and indeed my original version suffer from a problem on Windows platforms. Windows and DOS systems use the back-slash symbol for their path separator, but I'm using it as a continuation symbol, as Bash does. Even though I use to use Windows, I always used the Unix path separator, slash, and let Perl do it's magic when it was accessing the file system.