new Text::Template ( TYPE => ’FILE’, SOURCE => $filename );
new Text::Template ( TYPE => ’FILE’, SOURCE => $filename );
−
This reads the template from the specified file. The filename is opened with the Perl "open" command, so it can be a pipe or anything else that makes sense with "open". The "TYPE" can also be "STRING", in which case the "SOURCE" should be a
+
This reads the template from the specified file. The filename is opened with the Perl "open" command, so it can be a pipe or anything else that makes sense with "open". The "TYPE" can also be "STRING", in which case the "SOURCE" should be a string: