in reply to Using Templates

The code itself looks fine.

PBP will tell you to:

Update: You should have use strict; and use warnings; at the top of your code. I realise this is just a code fragment and you may have those lines in the complete script - but you did ask :-)

-- Ken