add a perl template and allow pushing a perl hash of variables