More fixes to perl examples.