Comment 11 for bug 310351

I'll have to think about this more, not keen on adding any perl dependencies.