package onlyTemplate; @EXPORT = qw(write_template); use strict; use base 'Exporter'; use File::Spec; use File::Path; sub write_template { my ($template_path, $target_path, $lookup) = @_; open TEMPLATE, $template_path or die "Can't open $template_path for input:\n$!\n"; my $template = do {local $/;