I like to add on something, I had put the pragma use strict; use warnings; on all modules that I had, but I didn't get the warnings of "Variable "$foo" will not stay shared at..." .
What other possibility that might cause my program to cache the result even when the input has already changed ? Thanks.