Thanks for the Text::Template. Just changed a few logic on my classes and it works like a charm...
I'm still a little bit intrigued of what I did and why didn't work... but for now I'll leave it on the side. I'll worry about it when this happens again.