racke / Template-Flute

Template::Flute - Modern designer-friendly HTML templating Engine
Other
11 stars 12 forks source link

Localise loop variable's scope to the loop's scope #128

Closed paultcochrane closed 9 years ago

paultcochrane commented 9 years ago

The variable $lookup is only used within the loop and thus its declaration can be scoped to the loop rather than to the enclosing if block.