http://qs1969.pair.com?node_id=11128528


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;