in reply to Re: Re: Text::Template and the Binding of Package Variables
in thread Text::Template and the Binding of Package Variables
Kind of seems like it should work, actually. You are assigning values to $main::start_date and $main::end_date and then your template runs in package main:: and refers to $start_date and $end_date without strict turned on. Maybe there's something special about the use of the main:: package. You could try declaring a package in your program and see if that helps.