in reply to Closure Over Scalar?
You can force initialization at compile time by wrapping the assignment in a BEGIN block:
my $FIXED_STRING; BEGIN { $FIXED_STRING = 'fixed_string'; } my %persistent; [download]