This doesn't work as planned, will re-work.
This reverts commit d2ce7747a0a44c1278361d69af1d53d193fdc6c8.
5NMDP6ULYP3RAIDEHNA3XRMLXZTJFYJYXNNEZQ75G7WC3OL2ATTQC
ZEDMA4P6CGAP5HLW7OZFPZIJRMQMWGLVGXLGLYQ52TYMNYYHIXJAC
QDJRQIFFTRQZ6GWIQD33R6RZ4AOW6F5IOFGSLSUU35E4QR454K7AC
5EQYVRWECBDJORGI5DRIOUEJXSXMRCQNT2562BM4Z4U52LT7JUHAC
LDICTHWYJ2SP6IU3PK2K2PW5FN54HP7W4KTL324YYTTNPVJ4HSLQC
use FileHandle;
if (-e $template) { my $fh = FileHandle->new($template, "r"); if ($fh) { $template = $fh; } }
if (-e $template) {
my $fh = FileHandle->new($template, "r");
if ($fh) {
$template = $fh;
}
if (ref($template) eq "FileHandle") { $template->close(); }
if (ref($template) eq "FileHandle") {
$template->close();