Subject: | minimum version 5.8.0? |
First of all, *THANK YOU* for Template Toolkit. It's a huge life saver \o/
According to the Makefile.PL, the minimum perl version is 5.6.0. But the "perlver" tool (which ships with Perl::MinimumVersion) accuses that Template::Document is using a binmode construct that is only available on 5.8.0. In fact, https://metacpan.org/source/ABW/Template-Toolkit-2.26/lib/Template/Document.pm#L308 says:
binmode $fh, ":utf8";
And in 5.6 PerlIO existed but was not loaded by default, and the only "disciplines" available were ":raw" and ":crlf".
I'm not sure what would happen if an unknown discipline is called in 5.6. In current perls it triggers a warning and keeps going. If you think this is alright for Template::Document, please feel free to close this ticket. Otherwise, the perl minimum version should probably be updated to 5.8.0.