abw / Template2

Perl Template Toolkit v2
http://template-toolkit.org/
146 stars 94 forks source link

Avoid anonymous hash warnings starting with Perl 5.35.2 #288

Closed plicease closed 2 years ago

plicease commented 3 years ago

This silences these warnings:

t/compile1.t ................. each on anonymous hash will always start from the beginning at lib/Template/Document.pm line 75. each on anonymous hash will always start from the beginning at lib/Template/Provider.pm line 373. each on anonymous hash will always start from the beginning at lib/Template/Provider.pm line 872. each on anonymous hash will always start from the beginning at lib/Template/Provider.pm line 891.

when compiling Template. These warnings are still generated as of 5.35.4

@trwyant had alternate suggestions in #287 which also may be fine, but I needed to make these changes in my environment now and figured I may as well make it a PR while I was at it. If you want a different implementation no harm in closing this.