So time ago 迪拉斯 told me I should not use
my together with a condition. He told me it's undefined behaviour, if the contrition is not met and asked me what am I expecting to have in the variable if the condition is not met. I was expecting
undef and it actually worked like that. I was not too much excited and just told my self "let's just don't do it from now on".
Days passed and one day we got a strange behaviour in our
mod_perl application. A variable was set even it was not supposed to be. The reason was simple. The condition was not met, but instead of
undef the variable had the value from a previous request... Was funny in our case but in others it could lead to security problem.
Lesson learned - next time pay more attention to what my colleagues are telling and never use