G
grin.k1tt3n
I just discovered the bug/feature of having a static variable if it
initialized as:
my $var = expr() if condition();
That is, if condifition is not true, then var is initialized with
whatever was last there.
It seems like this issue is over 7 years old, but I see no mention of
it in "man perlsub".
(It cost me two hours this morning wrangling with mod_perl).
Are there any plans to document/correct this soon?
This was running on perl 5.8.8.
Thanks,
Rob
initialized as:
my $var = expr() if condition();
That is, if condifition is not true, then var is initialized with
whatever was last there.
It seems like this issue is over 7 years old, but I see no mention of
it in "man perlsub".
(It cost me two hours this morning wrangling with mod_perl).
Are there any plans to document/correct this soon?
This was running on perl 5.8.8.
Thanks,
Rob